Having trouble with a simple script, if there is something wrong with it, could you please tell me... You can see an example at
http://www.blackwoodenterprises.com/form.html
My service provider is GoDaddy.com
form.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<!-- Script 2.1 - form.html -->
<form action="handle_form.php" method="post">
<fieldset><legend>Enter your information in the form below:</legend>
<p><b>Name:</b> <input type="text" name="name" size="20" maxlength="40" /></p>
<p><b>Email Address:</b> <input type="text" name="email" size="40" maxlength="60"/> </p>
<p><b>Gender:</b> <input type="radio" name="gender" value="M"/> Male <input type="radio" name="gender" value="F"/> Female</p>
<p><b>Age:</b>
<select name="age">
<option value="0-30">Under 30</option>
<option value="30-60">Between 30 and 60</option>
<option value="60+">Over 60</option>
</select></p>
<p><b>Comments:</b> <textarea name="comments" rows="3" cols="50"></textarea></p>
</fieldset>
<div align="center"><input type="submit" name="submit" value="Submit Information"/></div>
</form>
<!-- End of Form -->
</body>
</html>
handle_form.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<?php # Script 2.2 - handle_form.php
$name = stripslashes($name);
$comments = stripslashes($comments);
echo "Thank you, <b> $name</b> for the following comments: <br/><tt>$comments</tt><p>We will reply to you at <i>$email</i>.</p>";
?>
</body>
</html>