|
Posted by Jerry Stuckle on July 18, 2008, 9:02 pm
Please log in for more thread options
Paul.Lee.1971@gmail.com wrote:
> Hi,
> 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:
> <?php
> header( 'Location: http://www.whispy.com/intro_page.php' ) ;
> ?>
>
> I think the best way is, once the form processing is done, to do
> something like
> echo ( "<META HTTP-EQUIV=\"refresh\" content=\"0;URL=http://
> www.whispy.com/intro_page.php\">";);
>
> 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?
>
> Thanks!
>
> Paul
>
Paul,
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
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
|