That's now correct. It must be "recipients" with an "s", not "recipient".
and I copied the php code you provided and pasted it into a new file and put what I hoped is the right php code for the "thanku.html" and "error.html" into it and saved it as form_process.php. I don't know php welll yet but at the end of the code that you gave me shouldn't there have been a ?> to end the file or did you leave that out on purpose? When you said to send the data using function pamas I didn't know what that was so I tried it without it. Is function pamas something that's usedf a lot?, if so I can google it. Here's my form_process.php code
if(!empty($POST['subject']) && !empty($POST['recipient']))
header('Location:thanku.html');//thank you message or redirect the thank you page
include('formmail.php'); //include the formmail.php and send the data by using function pamas
header('Location:error.html');//display error message(s) or redirect to the error page
Please don't add additional PHP code to FormMail. The above is not going to help you, so please remove it.
<input type="hidden" name="bad_url" value="error.html" />
<input type="hidden" name="good_url" value="thanku.html" />
This is correct and FormMail will redirect according to those instructions.
However, it only redirects to "good_url" when there are no errors! Otherwise it will redirect to "bad_url".
I always recommend that you put in a full URL (e.g. "http://..../page.html") otherwise you're dependent on what the browser currently has in its address bar.
If you're getting an error, please post the error message. Error messages are the key to solving all problems.
Make sure you have DEF_ALERT set inside FormMail so it can email you with detailed error messages. Test alerts with the "testalert" test.
The full HOW TO guide for redirecting is here:
Russell Robinson (http:://www.tectite.com/)
Author of Tectite FormMail