E
07-12-2002, 04:00 AM
Ok my first time using drop down menu's with php....
and i thought it was a good result there where no mysql errors or nothing and it did wat it was suppose to do...
altho there was one thing.... it doesnt follow my code to tell it which thing is selected....
any help??
here is the code
if ($wepid == $wep1) {
$eq1="<option value=\"$wep1\" selected>$wename1</option>";
} else {
$eq1="<option value=\"$wep1\">$wename1</option>";
}
if ($wepid == $wep2) {
$eq2="<option value=\"$wep2\" selected>$wename2</option>";
} else {
$eq2="<option value=\"$wep2\">$wename2</option>";
}
if ($wepid == $wep3) {
$eq3="<option value=\"$wep3\" selected>$wename3</option>";
} else {
$eq3="<option value=\"$wep3\">$wename3</option>";
}
and i thought it was a good result there where no mysql errors or nothing and it did wat it was suppose to do...
altho there was one thing.... it doesnt follow my code to tell it which thing is selected....
any help??
here is the code
if ($wepid == $wep1) {
$eq1="<option value=\"$wep1\" selected>$wename1</option>";
} else {
$eq1="<option value=\"$wep1\">$wename1</option>";
}
if ($wepid == $wep2) {
$eq2="<option value=\"$wep2\" selected>$wename2</option>";
} else {
$eq2="<option value=\"$wep2\">$wename2</option>";
}
if ($wepid == $wep3) {
$eq3="<option value=\"$wep3\" selected>$wename3</option>";
} else {
$eq3="<option value=\"$wep3\">$wename3</option>";
}