What is an easy code for a form in PHP?

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

  • 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>

  • Answer:

    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.

Cheapnbe... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.