Forum Moderators: open
I am setting up my first website.
My ISP says they have enabled Form2mail for me and set up a nickname for me.
I am using the following code for my form. When I press submit I get an Internal Server Error message, saying contact the webmaster.
Any suggestions would be much appreciated.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http:www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www,w3,org/1999/xhtml" lang="en" xml: lang="en">
<head>
<title>DareMe Website</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="en-us" />
<link href="contactus_style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
</style>
</head>
<body>
<div id="formcontainer">
<!--overall continer div-->
<form method="post" action=/cgi-bin/form2mail.cgi>
<input type="hidden" name="_nickname" value="test">
<input type="hidden" name="_subject value" ="Customer enquiry">
<input type="hidden" name="_from value" ="form2mail@example.com">
<input type="hidden" name="_next_url" value="http//example.com/index.htm">What is your name:
<input type="text" name="sender" size=50>
<br>
<br>
What is your email address:
<input type="text" name="To" size=40>
<br>
<br>
What sex are you:
<input type="radio" name="gender" value="Male"> Male
<input type="radio" name="gender" value="Female"> Female
<input type="radio" name="gender" value="Don't know" checked> Don't know
<br>
<br>
What activities do you like?:
<input type=checkbox name="Cookies" value=Yes> Cookies
<input type=checkbox name="Sweets" value=Yes> Sweets
<input type=checkbox name="Apples" value=Yes> Apples
<input type=checkbox name="Oranges" value=Yes> Oranges
<input type=checkbox name="Coffee" value=Yes> Coffee
<input type=checkbox name="Tea" value=Yes> Tea
<br>
<br>
What computer do you have:
<select name="Computer">
<option value="Don't know"> Don't know
<option value="PC"> PC
<option value="Mac"> Mac
<option value="Unix"> Unix
</select>
<br>
<br>
<!--SUBMIT BUTTON-->
<input type="reset" value="reset">
<input type="submit" value="send">
</form>
</div> <!--end of overall container div -->
</body>
</html>
Thankyou
Kind Regards
Digby
[edited by: tedster at 7:05 pm (utc) on June 13, 2007]
[edit reason] use example.com, not real domain names [/edit]
My ISP says they have enabled Form2mail for me and set up a nickname for me
<input type="hidden" name="_nickname" value="test">
Is "test" the nickname they set up for you? And are you sure this is the location of the mailer?
<form method="post" action="/cgi-bin/form2mail.cgi">
The 500 error is seldom helpful from a browser. If the location is wrong it is trying to execute a script that doesn't exist and it will still 500.