![]() Topic awaiting preservation: php redirecting (Page 1 of 1) |
|
---|---|
Neurotic (0) Inmate Newly admitted From: |
![]() I am still kind of new to this php scripting, but need to know how to redirect someone after they have completed a form, the form gets sent via email (mail(blablabla)) using php, however i have added a line |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
![]() You need to do the redirection before you have any information sent to the browser. code: <?php
|
Neurotic (0) Inmate Newly admitted From: |
![]() is there a way that i can delay the redirection for a few seconds and display a message on the screen before the redirect takes place??? the form will be for customer inquiries and i dont want to give a bad impression |
Paranoid (IV) Inmate From: France |
![]() For the straight redirection: http://www.php.net/header |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
![]() code: <meta http-equiv="refresh" content="10; url=http://www.somesite.com/" />
|
Neurotic (0) Inmate Newly admitted From: |
![]() Thanks I went with the meta tag in the header, timed it for 3 seconds. I didnt have to change any other page scripts and everything works the way i wanted. if i have any other dramas i will post here. thanks everyone. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() you could maybe extend these faqs with some advice when to use what, if you had the spare time: |
Bipolar (III) Inmate From: övik |
![]() Response.Redirect('adress'); |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() you know... everyone can create a page in the faq. So feel free to add to it. |
Bipolar (III) Inmate From: övik |
![]() I have. |