View Single Post

  #1 (permalink)  
Old 10-27-2003
Frank Tudor
 
Posts: n/a
Default function problem (simple redirect)

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/
Reply With Quote