In your original post (see below), you stated that that you wanted <A> tag
functinality, which would involve the user clicking. In your last post, you
state that you do not want the user to click; which is it to be?
Now, your question is really about re-direction based upon a condition,
whereby the user does not clisk a link, then the answer is:
<?
if(this happens) {
header("Location:somepage.php");
} else header("location:anotherpage.php");
?>
However, this snip must be executed before anything else is sent. It WILL
NOT be displayed. Rather, the user will automatically be delivered to the
referenced page.
-----Original Message-----
From: Tommi Trinkaus [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 3:44 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Beginner: Open URL
Hi Nick
> I'm not sure what you mean can you be a little more detailed?
> I can tell however that PHP is *not* a substitute for HTML. If you want
> something like the <a> tag then *use* the <a> tag.
in fact i want something like the <a> tag, but the new url should be opened
within a php if-statement, not by user-clicking. Is that more detailed for
you?
thanks, tommi
-----Original Message-----
From: Tommi Trinkaus [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 2:04 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Beginner: Open URL
Hi over there,
i'm just beginning with php and i wonder if it is possible to show another
url in the current window like the <a> Tag in HTML.
Thanks for any answer...
tommi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]