![]() |
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 |
try this:
PHP Code:
|
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