Topic awaiting preservation: php redirecting (Page 1 of 1) |
|
---|---|
Neurotic (0) Inmate Newly admitted From: |
posted 06-08-2004 02:36
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 |
posted 06-08-2004 02:47
You need to do the redirection before you have any information sent to the browser. code: <?php
|
Neurotic (0) Inmate Newly admitted From: |
posted 06-08-2004 02:53
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 |
posted 06-08-2004 02:55
For the straight redirection: http://www.php.net/header |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 06-08-2004 03:26
code: <meta http-equiv="refresh" content="10; url=http://www.somesite.com/" />
|
Neurotic (0) Inmate Newly admitted From: |
posted 06-08-2004 04:25
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 |
posted 06-08-2004 08:56
you could maybe extend these faqs with some advice when to use what, if you had the spare time: |
Bipolar (III) Inmate From: övik |
posted 06-08-2004 21:17
Response.Redirect('adress'); |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 06-08-2004 21:25
you know... everyone can create a page in the faq. So feel free to add to it. |
Bipolar (III) Inmate From: övik |
posted 06-08-2004 23:52
I have. |