voogru
04-21-2002, 03:53 AM
trying to learn some php, im a n00b lol anyways
i have a form named "vogreq" which has several options, 1000,2000 ect, now i want the action to respond differently to each action. i have tried:
if ($action=="vogamount") {
if (vogreq>rq1000vog) {
echo "<META HTTP-EQUIV=\"refresh\" content=\"0;URL=http://forums.voogru.com/store.php?action=reqvog1000\"> \n";
}
if (vogreq>rq2000vog) {
echo "<META HTTP-EQUIV=\"refresh\" content=\"0;URL=http://forums.voogru.com/store.php?action=reqvog2000\"> \n";
}
}
but when i select the option for 2000 it still does the 1000 action, how can i make it respond to each action differently?
thanks
i have a form named "vogreq" which has several options, 1000,2000 ect, now i want the action to respond differently to each action. i have tried:
if ($action=="vogamount") {
if (vogreq>rq1000vog) {
echo "<META HTTP-EQUIV=\"refresh\" content=\"0;URL=http://forums.voogru.com/store.php?action=reqvog1000\"> \n";
}
if (vogreq>rq2000vog) {
echo "<META HTTP-EQUIV=\"refresh\" content=\"0;URL=http://forums.voogru.com/store.php?action=reqvog2000\"> \n";
}
}
but when i select the option for 2000 it still does the 1000 action, how can i make it respond to each action differently?
thanks