|
Posted by qummik on 01/21/06 22:50
for list:
<select name="list">
<option value="value1"<?php if($_POST["list"]=="value1") { echo"
selected"; } ?>>item1</option>
<option value="value2"<?php if($_POST["list"]=="value2") { echo"
selected"; } ?>>item2</option>
</select>
for radio buttons:
<label><input name="radio" type="radio" value="radio1"<?php
if($_POST["radio"]=="radio1") { echo" checked"; } ?>>radio1</label>
<label><input name="radio" type="radio" value="radio2"<?php
if($_POST["radio"]=="radio2") { echo" checked"; } ?>>radio2</label>
Navigation:
[Reply to this message]
|