View Single Post
Old 08-03-2004, 01:48 PM  
TonyL
Confirmed User
 
TonyL's Avatar
 
Join Date: Feb 2002
Location: "A measure of a man is his post count". Write that down.
Posts: 900
I don't quite understand what you want to do.

Let me take a guess at what you are are trying to say.

You need a PHP program that redirects to a URL of your specification from a normal HTML doc? So I assume you are going to submit the URL you would like the PHP script to redirect to through a POST or GET request. So lets try this.

In the HTML doc place an anchor to the PHP script.

** HTML DOC
href="redirect.php?URL=www.suckme.com"
**

** PHP SCRIPT
<?
header("Location: $URL");
?>
**

This more in line with what you are looking for?

-Tony
TonyL is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote