This is a discussion on "Form Redirection" within the PHP Forum section. This forum, and the thread "Form Redirection are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Form Redirection
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
I have a form on my server and it shows a message "Details sent to Webmaster" if form details are properly sent and "Unable to send message...Please Go back and try again" if details are not sent successfully to me. All this works just fine!!!
Now I was just wondering if it is possible to automatically redirect my visitor...To my homepage(if details have been sent) or back to the form page(if details are not sent) Can I do this?? Please help!! Last edited by madmax; Jun 4th, 2007 at 16:56. |
|
|
|
|||
|
Re: Form Redirection
Something like this would do....
|
|
||||
|
Re: Form Redirection
You can do this on one page, although help is limited without seeing your original code. I've put your form in a separate file "form.inc".
|
|
|||
|
Re: Form Redirection
Here is my mailer.php.......What do I do??
|
|
|||
|
Re: Form Redirection
If all you want to do is redirect when the e-mail is sent successfully this will work. It will display "Unable to send message..." if the e-mail is not sent.
|
![]() |
| Tags |
| redirection, form |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Frame redirection with PHP | linchpin311 | PHP Forum | 2 | May 17th, 2007 17:35 |
| Upload redirection | Ross | PHP Forum | 8 | Feb 28th, 2007 23:32 |
| remove redirection | expressweb | Implemented Suggestions | 6 | Jul 21st, 2005 22:24 |
| redirection problem | iamzoli | PHP Forum | 12 | Apr 11th, 2004 08:48 |