To check an HTML checkbox you add the text "checked" like you would an attribute but without a value:
<input type="checkbox" name="abc" checked />
To select an item in a dropdown list / select box just add the text "selected" like you would an attribute for the element but without the value:
<select name="abc"> <option selected value="1">one</option> <option value="2">two</option> <option value="3">three</option> </select>
By PHPin24 @ 2009-07-28 16:18:55
|