I am trying to have a link on a webpage to redirect to another webpage while not showing on the address on the browser using php , can someone help me out here. Thanks
I have a php question
Collapse
X
-
Tags: None
-
-
I have no idea how to do that , I am new to php . all I know is htmlOriginally posted by RicardoB
What's wrong with metarefresh inside a frame?Comment
-
I cannot read thatOriginally posted by arial
Simple.PHP Code:<? if ($go = "1") header("Location: [url]http://website[/url]"); : ?>
Usage
script.php?go=1
Damn word filtersComment
-
Comment
-
no , i got it thanksOriginally posted by NickPapageorgio
I think what he is trying to block is the status bar message so the surfer can't see what's coming next from the click. Is that right? If so I think that can be controlled using just a little ja.va.scr.ipt.Comment
-
Here is a page that has a simple status bar message generator. Just put in what you want it to say, choose whether you want static or scrolling and click Generate and it gives you the HTML.
http://htmlbasix.com/statusbarmessage.shtml.Comment
-
It is wrong.Originally posted by arial
Simple.PHP Code:<? if ($go = "1") header("Location: [url]http://website[/url]"); : ?>
Usage
script.php?go=1
Damn word filters
At first, the condition will be always true and it will assign value "1" to the "$go" variable instead of evaluating the clause. The condition ($go = "1") should go with an extra equals sign. Moreover, PHP configuration on many servers has register_globals set to off, so you have to use $_GET['go'] instead of $go ... and in the end, the link itself is crippled by the board engine.
I will post example without the condition because this board cannot manage the code even in php or code section.
PHP Code:header("HTTP/1.1 301 Moved Permanently"); header("Location: FULL-URL-HERE"); header("Connection: close");Last edited by dgraf; 07-28-2004, 03:58 AM.Comment
-
Btw, why it is disabled to write a link or two successive equals signs even in the section marked as code or php?
It is very hard to write an example for someone this way
Comment
-
*LOL* that is HTML bro Load the page in a frame and refresh it with a meta refresh tag. Why use php for such a simple thing?Originally posted by sillysillyme
I have no idea how to do that , I am new to php . all I know is htmlComment
-
But what is the basic question then?Originally posted by TheMob?
The answer is forty two.
Comment



Comment