Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199908

RE: [PHP3] page redirection _after_ some seconds From: Haydn Haines - Sun Microsystems Middle East (Haydn.Haines <email protected>)
Date: 08/26/99

Hi Aaron,

I Have the META tag working fine within the body tags, if you wanna look go to:

        http://geeocities.com/SiliconValley/Platform/8338/
        
Regards,

Haydn.

|Mailing-List: contact php3-help <email protected>; run by ezmlm
|Delivered-To: mailing list php3 <email protected>
|From: Aaron Leon Kaplan <jjl <email protected>>
|To: Scott Schultz <scott <email protected>>
|cc: php3 <email protected>
|Subject: RE: [PHP3] page redirection _after_ some seconds
|
|
|
|On Wed, 25 Aug 1999, Scott Schultz wrote:
|
|> Aaron;
|>
|> The "refresh" meta-tag is not the same thing as the "location" header.
|> The meta-tag is essentially an instruction to the browser to do something
|> in X seconds. It's a delayed response. While I haven't checked lately,
|> I'd be willing to bet that it's not standard HTML at all. It's something
|> that Netscape came up with originally in order to create animation on
|> a web page. IE copied it and it became a de factor standard.
|>
|> The location header IS an actual header and it DOES have to appear before
|> any text is sent. The difference is that it causes an immediate
|> change instead of a time-delayed change.
|
|Hmmm. Scott,
|I tried to send it in the BODY but it did not work. Tested in in both IE
|4.x and Netscape 4.6. But when I put it in the HEAD section it will work.
|The problem is that I want to send it onyl when a certain condition is
|true. This condition can only be determined in the BODY.
|
|Any further ideas?
|
|Aaron.
|
|>
|> Scott Schultz
|> scott <email protected>
|>
|> -----Original Message-----
|> From: Aaron Leon Kaplan [mailto:jjl <email protected>]
|> Sent: Wednesday, August 25, 1999 8:44 AM
|> To: Haydn Haines - Sun Microsystems Middle East
|> Cc: php3 <email protected>
|> Subject: Re: [PHP3] page redirection _after_ some seconds
|>
|>
|>
|>
|> > Hi Aaron,
|> >
|> > You can use this... "2" is the time delay for the redirect:
|> >
|> > <META HTTP-EQUIV="Refresh" CONTENT="2;
|> URL=http://homes.arealcity.com/UforiX/">
|> >
|> > Regards,
|> >
|> > Haydn.
|>
|> Thanks.
|>
|>
|> I do suspect that this wont't work since I have sent the HTTP Header
|> already at the time where I would like to send the redirect.
|>
|> I would like to say something like:
|>
|> "Dear user you will be redirected to another page in 5 seconds"
|>
|> if and only if some other condition in my php script is true.
|> However I can only determine that condition after I have sent the HTTP
|> Header and after I have wrote some (BODY) text to the client. AFAIK the
|> META tag is onyl valid in the HTTP Header. And you cant send a HTTP Header
|> after you wrote some body text
|>
|>
|> Am I missing smthng?
|>
|>
|> Aaron.
|>
|>
|>
|> --
|> 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>
|

_________________________________________________________________
              __
             / \ , ,
   _._ _ |oo| _ / \__/ \ Haydn Haines.
  _|||| ((/ () \)) / \ PSG Engineer (Associate Level).
  |||||/| ( ==== ) |oo| _______________________________
   \____/ _`\ /'_ / \ Sun Microsystems.
   / /.-' /\<>/\ `\.( () )_._ SEAME Region.
   | ` / \/ \ /`'--'////) 2nd Floor, Hermitage Bldg,
    \__,-'`| |. |\/ |/\/\|"\"` Karama, Dubai, U.A.E.
           | |. | \___/\___/ _______________________________
           | |. | | | Tel (Direct): (971) 4 3060137

_________________________________________________________________

       Despite the cost of living, have you noticed how
                   it remains so popular?
_________________________________________________________________

-- 
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>