selected <option bla bla >

From: Date: Wed, 25 Apr 2001 10:30:43 +0000
Subject: selected <option bla bla >
Groups: php.general 
Request: Send a blank email to php-general+get-50267@lists.php.net to get a copy of this message
I have this one :- <select name="jenis_biasiswa"> <option selected>Penuh</option> <option>Separuh</option> <option>Sendiri</option> </select> and a field of table which contained with 'Penuh' OR 'Separuh' OR 'Sendiri' I want to make it Ither one is 'selected' during a particular time. i'm thinking of having something like this:- <select name="jenis_biasiswa"> <option <? function_that_determine_it_selected_or_not(Penuh)?> >Penuh</option> <option <? function_that_determine_it_selected_or_not(Separuh)?> >Separuh</option> <option <? function_that_determine_it_selected_or_not(Sendiri)?> > Sendiri</option> </select> Is that any prebuild/example funtion for that function_that_determine_it_selected_or_not(Sendiri) then print "Selected" ? thanks in advance -- Hasbullah Bin Pit (sebol) http://ikhlas.com " Melihat keadaan sistem kehakiman sekarang ini, Saya tak hairan kalau saya disabitkan dengan kesalahan 'Menceraikan isteri di luar mahkamah' ketika saya masih bujang" - Hasbullah Pit -

« previous php.general (#50267) next »