I have a form with the element values being populated dynamically by fields in a database table. In this form there are some select and radio elements.
How would I have the select element select the appropriate option based on the table when the page loads. The same for the radio element.
dynamically (in the page's source from the php side) add selected="selected" and checked="checked" to the corresponding option or radio button respectively.