HigherHigher
IS-IT--Management
Hi, I want to build a form to collect email address. When I tested this script on the browser, it says " the page cannot be found" after I submited my email address. I know both HTML and PHP page up on the server. Is my PHP script correct? Thank you very much for your help.
HTML
<form action="send.php" method="post">
<table width="300" border="0" >
<tr>
<td width="50"></td>
<td width="250" class=""><p class="style6"> </p></td>
</tr>
<tr>
<td width="80">Email address:</td>
<td width="120">
<input type="text" name="email" id="email" size="30" maxlength="40">
</td>
</tr>
<tr align="center" valign="middle"><td colspan="2"><input name="submit" type="submit" value="Sign Me Up!"></td>
</tr>
</table>
</form>
PHP script
<?
$email = $_REQUEST['email'] ;
mail( "djm@hotmail.com", "Feedback Form Results",
$message, "From: $email" );
?>
HTML
<form action="send.php" method="post">
<table width="300" border="0" >
<tr>
<td width="50"></td>
<td width="250" class=""><p class="style6"> </p></td>
</tr>
<tr>
<td width="80">Email address:</td>
<td width="120">
<input type="text" name="email" id="email" size="30" maxlength="40">
</td>
</tr>
<tr align="center" valign="middle"><td colspan="2"><input name="submit" type="submit" value="Sign Me Up!"></td>
</tr>
</table>
</form>
PHP script
<?
$email = $_REQUEST['email'] ;
mail( "djm@hotmail.com", "Feedback Form Results",
$message, "From: $email" );
?>