PDA

View Full Version : Need a lil help


voogru
21 Apr 2002, 04:53
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
21 Apr 2002, 06:50
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.

Chen
21 Apr 2002, 11:50
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
21 Apr 2002, 14:21
thanks. i told you im a n00b lol