Chisa
(?)Community Member
- Posted: Sat, 15 Jan 2005 11:37:52 +0000
I'm having trouble getting my mailing form to work sweatdrop
My html form is:
And the sendmail.php contains:
This is all pretty much posted from a tutorial, and I've checked with other online tutorials, and kind figure out what I'm doing wrong. Any suggestions?
My html form is:
<form method="post" action="sendmail.php">
<p>Name:
<br>
<input name="name" type="text" class="field"/>
</p>
<p>Email:
<br>
<input name="email" type="text" class="field"/>
</p>
<p>Subject:<br>
<input name="subject" type="text" class="field"/>
</p>
<p>Message:<br />
<textarea name="message" rows="8" cols="30" class="field">
</textarea>
<br />
<input name="submit" type="submit" id="submit" value="send" class="button"/>
<input name="reset" type="reset" id="reset" value="reset" class="button"/>
</p>
</form>
<p>Name:
<br>
<input name="name" type="text" class="field"/>
</p>
<p>Email:
<br>
<input name="email" type="text" class="field"/>
</p>
<p>Subject:<br>
<input name="subject" type="text" class="field"/>
</p>
<p>Message:<br />
<textarea name="message" rows="8" cols="30" class="field">
</textarea>
<br />
<input name="submit" type="submit" id="submit" value="send" class="button"/>
<input name="reset" type="reset" id="reset" value="reset" class="button"/>
</p>
</form>
And the sendmail.php contains:
<?
$name = $_REQUEST['name'] ;
$email = $_REQUEST['email'] ;
$subject = $_REQUEST['subject'] ;
$message = $_REQUEST['message'] ;
mail('yarnyeetong@gmail.com',$subject,$text,"From: $name <$email>")
header("location:form.php")
?>
$name = $_REQUEST['name'] ;
$email = $_REQUEST['email'] ;
$subject = $_REQUEST['subject'] ;
$message = $_REQUEST['message'] ;
mail('yarnyeetong@gmail.com',$subject,$text,"From: $name <$email>")
header("location:form.php")
?>
This is all pretty much posted from a tutorial, and I've checked with other online tutorials, and kind figure out what I'm doing wrong. Any suggestions?