my html form consists of drop down for selecting city and state.
radio buttons for selecting gender.
and a few check boxes.
the form is filled and the values are stored in a database table.
I am working on a php script, which retrieves values from database into an array.
consider that my array's first element corresponds to a radio button with value M ( M- male)
then i want the radio button for male to be selected.
similarly if a particular city is selected the i want that city selected in the drop down menu...
this is similar to web sites to which we are registered allow us to update our profiles by displaying the fields with the old values....
your response will be of great help to me...
thanking you guys in advance!!