![]() |
formmail.php
ok, working on a site... the form works, hit submit and the info gets e-mailed.
Problem is, it doesn't go to my thankyou.html page... where/how in the formmail.php file do I put the redirect? I thought it was input type="hidden" name="redirect" value="http://your.host/to/file.html" but that doesn't seem to work. |
Yeah, that's right.
Check to see if you mistyped any quotation marks or something. Also I don't think it should make a difference but try removing the quotes around "hidden." If you want, email me all the code in a text document or something and I will check it out. |
no mitypes... is there a certain place in the php file I need to put it?
|
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>http://www.dtheatre.com/scripts/formmail_doc.php |
ahh, ok that was my mistake... I need to put the redirect in the form before I close the form... I'll try that.
thank you! |
ok, still not working... I've added it after the submit button, in the form, outside the form... and no luck... still every time you hit submit it gets the "thank you" message from the .php file instead of the redirect.
|
It needs to be before the submit button line and in the form.
|
still no luck..
here's what I have where the submit is: <td colspan="3"> </td> <td colspan="3"> </td> <td><div align="center"><span class="Tahoma"> <input name="Submit" type="submit" class="Tahoma" id="Submit" value="Submit"/> </span></div></td> <td><div align="center"><span class="Tahoma"> <input name="Clear" type="reset" class="Tahoma" id="Clear" value="Clear" /> </span></div></td> <td> </td> Where in there should the redirect be? I tried a meta tag and that works but it redirects before you even submit... The ideal situation would be to have the redirect in the php file because I have like 7 different forms that go to this php file, so it would be better to have the redirect there instead of in each page. But when I put the meta tag in the php file, all I get is it still goes to the php file but just give a blank page, no redirect or the normal message. |
YESSSSSSS! FOUND IT! DONE!
Got a php redirect code in the php!!!! WOOOOOOOOOOOOOOOOOOOOOOOOO! |
| All times are GMT -4. The time now is 05:58 AM. |
Powered by vBulletin®