My Code Is
Code: Select all
$getproductid = $_GET["product_id"];
....
header('Location: http://www.myswebsite.com/auction/?x=pr ... productid');
Moderator: General Moderators
Code: Select all
$getproductid = $_GET["product_id"];
....
header('Location: http://www.myswebsite.com/auction/?x=pr ... productid');
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.