Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-28-2004, 04:23 AM   #1
sillysillyme
Confirmed User
 
Join Date: Jan 2004
Location: La La Land
Posts: 156
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
sillysillyme is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 04:25 AM   #2
RicardoB
Confirmed User
 
Join Date: Jan 2004
Posts: 2,576
What's wrong with metarefresh inside a frame?
RicardoB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 04:25 AM   #3
arial
Confirmed User
 
arial's Avatar
 
Join Date: Jul 2002
Location: Bay Area
Posts: 4,012
PHP Code:
<?
if ($go = "1")
header("Location: [url]http://website[/url]");
:
?>
Simple.

Usage
script.php?go=1

Damn word filters

Last edited by arial; 07-28-2004 at 04:28 AM..
arial is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 04:26 AM   #4
sillysillyme
Confirmed User
 
Join Date: Jan 2004
Location: La La Land
Posts: 156
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 04:29 AM   #5
sillysillyme
Confirmed User
 
Join Date: Jan 2004
Location: La La Land
Posts: 156
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
sillysillyme is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 04:32 AM   #6
NickPapageorgio
Confirmed User
 
Join Date: Apr 2004
Location: NC
Posts: 8,323
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.
__________________
NickPapageorgio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 04:34 AM   #7
sillysillyme
Confirmed User
 
Join Date: Jan 2004
Location: La La Land
Posts: 156
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
sillysillyme is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 04:39 AM   #8
mardigras
Bon temps!
 
Join Date: Feb 2003
Location: down yonder
Posts: 14,194
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
__________________
.
mardigras is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 04:55 AM   #9
dgraf
Confirmed User
 
Join Date: Jun 2004
Posts: 133
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"); 

Last edited by dgraf; 07-28-2004 at 04:58 AM..
dgraf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 05:02 AM   #10
dgraf
Confirmed User
 
Join Date: Jun 2004
Posts: 133
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
dgraf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 05:06 AM   #11
TheMob
Confirmed User
 
Join Date: Jan 2003
Location: 2006
Posts: 8,584
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.
TheMob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 05:08 AM   #12
RicardoB
Confirmed User
 
Join Date: Jan 2004
Posts: 2,576
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?
RicardoB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 05:26 AM   #13
dgraf
Confirmed User
 
Join Date: Jun 2004
Posts: 133
Quote:
Originally posted by TheMob?
The answer is forty two.
But what is the basic question then?
dgraf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.