feedback form
| From: | merryE | Date: | Sun, 12 Oct 2003 20:51:51 +0000 |
| Subject: | feedback form | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-165937@lists.php.net to get a copy of this message | ||
I create a feedback form in html and the action si to post to the php. It doesn't wotk well and
i don't know what's is the problem. please help me to look at it. Tell me the errors,
thank's.
This is the form.php code:
<? php
$toaddress = "merry_e_k@yahoo.com";
$subject = "Feedback testing";
$mailcontent = " Name: ".$name."\n" ."Email: ".$email."\n"
.."comments:\n" .$feedback."\n";
mail($toaddress, $subject, $mailconten);
?>
This is the form.html code:
<form name="form1" method="post" action="form.php">
<table width="100%" border="0">
<tr>
<td width="83" class="text">name :</td>
<td width="432"><input name="name" type="text"
class="text" id="name"></td>
</tr>
<tr>
<td class="text">email :</td>
<td><input name="email" type="text" class="text"
id="email"></td>
</tr>
<tr>
<td valign="top" class="text">feedback :</td>
<td><textarea name="feedback" cols="30" rows="4"
wrap="VIRTUAL" class="text"
id="feedback"></textarea></td>
</tr>
<tr>
<td> </td>
<td><input name="Submit" type="submit"
class="buttons" value="Submit">
<input name="Clear" type="reset" class="buttons"
id="Clear2" value="Clear"></td>
</tr>
</table>
</form>