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)
-   -   PHP question: How to 'forward' to a page like metarfresh in php? (https://gfy.com/showthread.php?t=577058)

justsexxx 02-17-2006 07:44 AM

PHP question: How to 'forward' to a page like metarfresh in php?
 
This page (let's say test.php) should forward the surfer straight to the joinpage(of nats on the same server)

The nats link is
http://secure.domain.com/signup/signup.php?nats=<?=$_REQUEST['nats']?$_REQUEST['nats']:'GftgsnN'?>&step=2

When I link to this as in a hef=http://secure.domain.com/signup/signup.php?nats=<?=$_REQUEST['nats']?$_REQUEST['nats']:'GftgsnN'?>&step=2 and save the page it works. It 'transform' this link to a correct output.

However, when i use

meta http-equiv="refresh" content="0;url=http://secure.domain.com/signup/signup.php?nats=<?=$_REQUEST['nats']?$_REQUEST['nats']:'GftgsnN'?>&step=2


and save this as .test.pho it does not work. It simply doesn't transform the code into 'correct output'

Jeez, I hope I was clear :)

WHat should I do

Andre

RazorSharpe 02-17-2006 08:12 AM

try this:

PHP Code:

<?php header('Location: http://www.yoururl.com/'); ?>


SilverTab 02-17-2006 08:54 AM

header will work, but make sure you arent printing anything on the page first, or else you will get an error saying your headers are already sent!....

i.e. you have to use header BEFORE anything is output to the page...


All times are GMT -7. The time now is 11:18 AM.

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