Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question mark after php 1

Status
Not open for further replies.

hillbillyfritz

Technical User
Mar 28, 2001
34
US
Hi,
This is a very stupid question, I'm sure. How would I make a simple redirect like:
"redirect.php?1" redirects to "1.html"
I am not so much interested in the redirect as how to do the ? after the script name.
Thanks!
 
will give file.php the following variable:

Code:
$var = 1;

That's it. So, for a redirect:
Code:
/* The variable $file has already been set in the URL */

header ("Location: [URL unfurl="true"]http://www.domain.com/".$file.".html");[/URL]
Girish Gupta
girish@musicgoeson.com
 
Btw, there are no stupid questions, if u have a problem just post them and we'll answer ;-)

Okee, okee, if u post problems about ure microwave here, that would be stupid... mcvdmvs
-- "It never hurts to help" -- Eek the Cat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top