function problem (simple redirect)
| From: | Frank Tudor | Date: | Mon, 27 Oct 2003 18:24:12 +0000 |
| Subject: | function problem (simple redirect) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-167763@lists.php.net to get a copy of this message | ||
I'm trying to make this function work, but I'm not good at
functions. I have created a variable for testing payment equal
to 1 or 0 to see what would happen based on whatever the
condition is in my database (the sql stuff is not here because i
have to figure this thing out first). I get a t_string error or
t_varialbe but I don't know what to do to fix it.
Frank
code
----------
$payment = 1;
echo $payment;
function $payment{
if ($payment == "0");
header ("location:test_page.html");
}else{ ($payment == "1");
header ("location:test_page2.html");
}
__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/