Page 1 of 1

PHP Header Help

Posted: Tue Apr 07, 2009 11:41 pm
by VarwigDude
I am trying to redirect a page for certain products.

My Code Is

Code: Select all

 
$getproductid = $_GET["product_id"];
....
header('Location: http://www.myswebsite.com/auction/?x=pr ... productid');
 
It does redirect but the url is http://www.mywebsite.com/auction/?x=pro ... tproductid. But i want the actual product id to show up. Any Help

Re: PHP Header Help

Posted: Wed Apr 08, 2009 12:21 am
by requinix
Strings
Single quoted

The simplest way to specify a string is to enclose it in single quotes (the character ').

To specify a literal single quote, escape it with a backslash (\). To specify a literal backslash before a single quote, or at the end of the string, double it (\\). Note that attempting to escape any other character will print the backslash too.

Note: Unlike the two other syntaxes, variables and escape sequences for special characters will not be expanded when they occur in single quoted strings.

Re: PHP Header Help

Posted: Wed Apr 08, 2009 12:58 am
by VarwigDude
Worked Thank You Very Much :mrgreen: