PDA

View Full Version : Need a lil help


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

Neo
04-21-2002, 05:50 AM
Your code does not make any sence. A string cannot use values like > < and so on. As for what you are asking help on.... I have no clue what you mean.

Admin
04-21-2002, 10:50 AM
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";
}
}

voogru
04-21-2002, 01:21 PM
thanks. i told you im a n00b lol