RE: [PHP] feedback form

From: Date: Mon, 13 Oct 2003 09:06:53 +0000
Subject: RE: [PHP] feedback form
Groups: php.general 
Request: Send a blank email to php-general+get-165940@lists.php.net to get a copy of this message
mail($toaddress, $subject, $mailconten); should be mail($toaddress, $subject, $mailcontent); -----Original Message----- From: merryE [mailto:merry_e_k@hotmail.com] Sent: 12 October 2003 22:52 To: php-general@lists.php.net Subject: [PHP] feedback form 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>&nbsp;</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>

« previous php.general (#165940) next »