Page 1 of 1

mailto form submit question

Posted: Thu Mar 27, 2008 9:57 am
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>
 

Re: mailto form submit question

Posted: Thu Mar 27, 2008 10:53 am
by hawleyjr
Take a look at PHP native mail() function along with header()