PHP Newsletter

Join now and receive weekly updates pertianing to the world of PHP.

Polls

What do you think about the new PHPMine Design?
Awesome
Not Bad
Sucks

PHP Gigs By City

PHP Jobs By Topic

Advertisements

what is the php form code of following form code to run this form?

Asked 2010-03-04 00:32:06 by

please let me know what is the php code of this form
<form id="form1" name="form1" method="post" action="">
<p>Name :
<label>
<input type="text" name="textfield" id="textfield" />
</label>
</p>
<p>Email :
<label>
<input type="text" name="textfield2" id="textfield2" />
</label>
</p>
<p>Phone :
<label>
<input type="text" name="textfield3" id="textfield3" />
</label>
</p>
<p>Tour Deatil :
<label>
<textarea name="textarea" id="textarea" cols="45" rows="5"></textarea>
</label>
</p>
</form>

Anwered 2010-03-06 01:39:08 by spk

Well, I'm not sure what you mean, but I think this is what you mean
<?php
$name = $_POST["textfield"];
$email = $_POST["textfield2"];
$phone = $_POST["textfield3"];
$innards = $_POST["textarea"];
$myemail="_________";
mail($email, "$name sent you an email", "Name:$name -- Phone:$phone -- email:$email:What they wanted to say::::$innards", "from:$myemail");
?>

fill in the _______________ with your email.

Questions and answers provided by the Yahoo Answers Community.