mail($toaddress, $subject, $mailconten); 

should be

mail($toaddress, $subject, $mailcontent);


-----Original Message-----
From: merryE [mailto:[EMAIL PROTECTED] 
Sent: 12 October 2003 22:52
To: [EMAIL PROTECTED]
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 = "[EMAIL PROTECTED]";
$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>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to