mailto form submit question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gammaman
Forum Commoner
Posts: 45
Joined: Tue Feb 12, 2008 9:22 am

mailto form submit question

Post by gammaman »

Using the following code, how can I have the information sent to the email address and also redirected to another page when the user clicks submit.

Code: Select all

 
<html>
<body>
<FORM METHOD = Post action="mailto:code.bro@verizon.net" Enctype="text/plain">
First Name:
<input type ="text" name="firstname"/>
&nbsp
Last Name:
<input type ="text" name="lastname"/>
<br/>
<br/><dd/>
Comments orSuggestions:
<br/><dd/>
<textarea name="comment" rows="10" cols="50"></textarea>
</textarea>
<input name="redirect" Type="hidden" value="index.html">
<input name="next_url" Type="hidden" value="index.html">
<br>
&nbsp &nbsp &nbsp &nbsp &nbsp
<input type = "submit" value="send">
<input type = "reset" value="clear">
</form>
</body>
</html>
 
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Re: mailto form submit question

Post by hawleyjr »

Take a look at PHP native mail() function along with header()
Post Reply