[PHP-WIN] Re: need help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



1) client pull. use the browser meta-refresh, may not work on some browsers
(like PDA's, etc, nearly all desktop browsers should be ok with this method)
just tricky with passing back QUERY_STRING, if you had stuff from previous
form.
<HTML>
<HEAD>
<META HTTP-EQUIV="refresh"
content="10;URL=http://www.yoursite.com/firstpage.php?action=wrongdata";>
<TITLE>wrong data entered</TITLE>
</HEAD>
<BODY>
you entered the wrong data, please wait you will be redirected.

</BODY>
</HTML>

2) server push: using http headers.

I've not done this, but you can research it if you like. A http server
cannot technically "push" to the browser, but I believe under HTTP1.1 and
using multi-part forms, you can generate server pushes (in fact this is how
a lot of chat stuff works I think) which would do the trick.

3) client pull #2: use javascript

(yuck) even less compatible than yaks and crocodiles... ok I exaggerate for
effect.



"Zicux" <zicux@navigator.lv> wrote in message
1409935959.20030902233600@navigator.lv">news:1409935959.20030902233600@navigator.lv...
> Hello,
>
> How can I make my page reload in browser, for example user inputs some
> data then some page will say good or bad data and then I want it to
> reload to the first page where input form was?
>
>
> -- 
> Thanks,
>  .r.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux