Auto forwarding using variables
Posted: Thu Apr 02, 2009 7:03 am
Hi.
I have a form file, which after submission, goes to a "process" file.
I want to use some code at the end of the process file to forward to another page, depending on what the "match_no" is.
Code:
echo '<META HTTP-EQUIV="Refresh" Content="1;
URL=cards/match_no'$match_no'-mailer.php">';
exit;
The error message says "Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' "
I have tried putting the ";" in various places with no luck.
Can anyone suggest what is wrong?
Thanks,
Wayne.
I have a form file, which after submission, goes to a "process" file.
I want to use some code at the end of the process file to forward to another page, depending on what the "match_no" is.
Code:
echo '<META HTTP-EQUIV="Refresh" Content="1;
URL=cards/match_no'$match_no'-mailer.php">';
exit;
The error message says "Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' "
I have tried putting the ";" in various places with no luck.
Can anyone suggest what is wrong?
Thanks,
Wayne.