
Originally Posted by
dodie
apir choi!!!
modified code for ChaosOrb
Code:
foreach($arrayfromDB as $item){
echo '<option value="'.addslashes($item).'">'.$item.'</option>';
}
ang container quotes replaced into sinqle quotes.... aron dili na maaglibog2x sa quotes usage, specially in values attribute. hehehe :3
modify nato gamay, kini pwede maka select ug specific option thru $_REQUEST
PHP Code:
foreach($arrayfromDB as $item){
echo '<option value="'.addslashes($item).'"'.($_REQUEST['key'] == addslashes($item) ? ' selected="selected"' : '').'>'.$item.'</option>';
}
if libug na, ignore nalang ni...