Thread: formmail.php
View Single Post
Old 11-06-2009, 08:12 PM   #4
Triple A
Triple A
 
Triple A's Avatar
 
Posts: 133,040
Triple A makes a lot of good posts (200,000+)Triple A makes a lot of good posts (200,000+)Triple A makes a lot of good posts (200,000+)Triple A makes a lot of good posts (200,000+)Triple A makes a lot of good posts (200,000+)Triple A makes a lot of good posts (200,000+)Triple A makes a lot of good posts (200,000+)Triple A makes a lot of good posts (200,000+)Triple A makes a lot of good posts (200,000+)Triple A makes a lot of good posts (200,000+)Triple A makes a lot of good posts (200,000+)Triple A makes a lot of good posts (200,000+)Triple A makes a lot of good posts (200,000+)
Oh... no, that part goes on the HTML page where you are putting the form.

If you are using a pre-made PHP formmail script, you shouldn't need to edit anything in there.

In the html you would put something like

Code:
<form action="http://www.yourhost.com/formmail.php" method=post>

<input type=hidden name="recipient" value="email@your.host.com">

<input type=hidden name="subject" value="subject">

<input type=text name="body">

<input type=hidden name="redirect" value="http://your.host/to/file.html">

</form>
I am leaving out a bunch of stuff like the submit button, etc. but that is just an example.

http://www.dtheatre.com/scripts/formmail_doc.php

Last edited by Triple A; 11-06-2009 at 08:18 PM.
Triple A is offline