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
gammaman
Forum Commoner
Posts: 45 Joined: Tue Feb 12, 2008 9:22 am
Post
by gammaman » Thu Mar 27, 2008 9:57 am
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"/>
 
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>
         
<input type = "submit" value="send">
<input type = "reset" value="clear">
</form>
</body>
</html>
hawleyjr
BeerMod
Posts: 2170 Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA
Post
by hawleyjr » Thu Mar 27, 2008 10:53 am
Take a look at PHP native
mail() function along with
header()