Hi everyone,
I am trying to test a CGI script that i am in the proccess of writing. I have Perl and IIS installed on my work computer, and i use this to test my script and it works fine, but when i upload it to my web host (using apache) to test it, it falls apart and gives me a 500 error, Internal Server Error. I tested the script on the server using SSH and perl and got the output below (the same as on my computer),
Content-Type: text/html
<html>
<head>
<title>Search Page</title>
</head>
<body>
<font style="font-family: Verdana, Arial, Helvetica, sans-serif; font-
+size: 10px;"><form action="?op=search">
<input type="hidden" name="field" value="__FORM__">
<b>Search this database:</b><br>First Name: <input type="text" name="F
+irst Name"><br>
Email: <input type="text" name="Email"><br>
Gender: <input type="radio" name="Gender" value="Male"> Male <input ty
+pe="radio" name="Gender" value="Female"> Female <br>
Recieve Promotional Material: <input type="checkbox" name="Recieve Pro
+motional Material"><br>
<input type="submit">
</form>
<a href="?op=add">Add a record</a></font>
</body>
</html>
When i check the error log it says that the headers where cut short prematurely. But the only required header is Content-Type right?
Help would be appreciated...
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|