Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 200003

RE: [PHP3] How to direct use to another html page _after_ executing script? From: AEG, Inc. (AEG-Inc <email protected>)
Date: 03/17/00

Thanks all-

The javascript example, gasp, seems likely to work, lab notes on it will
come later, it is late here.

As for header modification, I guess I didn't make myself clear enough. All
of this is happening within 1 file, after loading (see original message
below for what 'this' is).

Therefore, header modification won't work because, as the php interpreter
tells me on error, headers can only be modified _before_ the client window
is written to.

TV's solution offers a (happy?) medium. I could put the form in 1 file, and
have it post/get to another file which had the header modification if
branching as its first lines. So there would be maybe four files: the form,
the header mod branch, the form is bad file, and the form is processed file.

But there is a problem there too. Namely the client should not be
'redirected' until after a form processing script, db updates &c., have
occurred. Further, those updates don't occur until after some "please wait"
text is displayed, ie, the client has been written to. This means also no
header redirection.

So the problem remains, and it is this: How can I use php to send a client
(push?) to a particular web page, after the client has been written to?

Thanks all-
Rod G

"AEG, Inc." wrote:
>
> Hola-
>
> I have a php3 page that is a form. All in one file the user fills a form,
> the script checks for the valid answers. If the answers are invalid then
> the form is reshown with a note asking for all info. If the answers are
> good then the form gets processed.
>
> While the form is processing the script says "Please wait a bit". Once
the
> processing is finished the form then says "Done, click here to go on."
What
> I'd really like is instead of making the user click, the proper page just
> comes up.
>
> How would one do that, and is there a proper term for it?
>
> Thanks-
> Rod G
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin <email protected>

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>