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 02-17-2006, 07:44 AM   #1
justsexxx
Too lazy to set a custom title
 
Join Date: Aug 2001
Location: The Netherlands
Posts: 13,723
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
__________________
Questions?

ICQ: 125184542
justsexxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-17-2006, 08:12 AM   #2
RazorSharpe
Confirmed User
 
RazorSharpe's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Scotland
Posts: 2,238
try this:

PHP Code:
<?php header('Location: http://www.yoururl.com/'); ?>
__________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
RazorSharpe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-17-2006, 08:54 AM   #3
SilverTab
Confirmed User
 
Join Date: Nov 2001
Location: MTL
Posts: 5,060
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...
__________________
mmm my sig was too big... no more cool animation
but hey still! need php? ICQ: 94586959
SilverTab 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.