Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Redirect to a new webpage
July 19, 2008, 12:03 am
rate this thread
I'm doing some experimentation with php and was wondering the "best"
way to achieve this task:
I have an initial page that has a form, which, when completed, directs
to an intermediate webpage to process
the results of the form. The user is then directed back to the initial
page. Because I need a delay to enable
processing of the form data, I don't think the following will work:
header( 'Location: http://www.whispy.com/intro_page.php ' ) ;
I think the best way is, once the form processing is done, to do
echo ( "<META HTTP-EQUIV=\"refresh\" content=\"0;URL=http://
This seems a bit cumbersome, but would immediately reload the initial
page once the form stuff has been
sifted. Is there another, better way, without dealing with webserver
config scripts, which I don't have access to?
Re: Redirect to a new webpage
I don't understand by what you mean by "needing a delay. But as long as
you don't send anything to the client beforehand (and the browser
doesn't time out), there shouldn't be any problem in using a header() call.
Did you try it? If so, what happened?
Remove the "x" from my email address
JDS Computer Training Corp.
- — Next thread in » PHP Scripting Forum