GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   I have a php question (https://gfy.com/showthread.php?t=332534)

sillysillyme 07-28-2004 04:23 AM

I have a php question
 
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

RicardoB 07-28-2004 04:25 AM

What's wrong with metarefresh inside a frame?

arial 07-28-2004 04:25 AM

PHP Code:

<?
if ($go = "1")
header("Location: [url]http://website[/url]");
:
?>

Simple.

Usage
script.php?go=1

Damn word filters

sillysillyme 07-28-2004 04:26 AM

Quote:

Originally posted by RicardoB
What's wrong with metarefresh inside a frame?
I have no idea how to do that , I am new to php . all I know is html

sillysillyme 07-28-2004 04:29 AM

Quote:

Originally posted by arial
PHP Code:

<?
if ($go = "1")
header("Location: [url]http://website[/url]");
:
?>

Simple.

Usage
script.php?go=1

Damn word filters

I cannot read that

NickPapageorgio 07-28-2004 04:32 AM

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.

sillysillyme 07-28-2004 04:34 AM

Quote:

Originally 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.
no , i got it thanks

mardigras 07-28-2004 04:39 AM

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

dgraf 07-28-2004 04:55 AM

Quote:

Originally posted by arial
PHP Code:

<?
if ($go = "1")
header("Location: [url]http://website[/url]");
:
?>

Simple.

Usage
script.php?go=1

Damn word filters

It is wrong.
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"); 


dgraf 07-28-2004 05:02 AM

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

TheMob 07-28-2004 05:06 AM

Quote:

Originally posted by dgraf
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 :)

The answer is forty two.

RicardoB 07-28-2004 05:08 AM

Quote:

Originally posted by sillysillyme
I have no idea how to do that , I am new to php . all I know is html
*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?

dgraf 07-28-2004 05:26 AM

Quote:

Originally posted by TheMob?
The answer is forty two.
But what is the basic question then? :)


All times are GMT -7. The time now is 04:18 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123