Forms
|
|
|
|
<?php
Function array2radio($arr,$name,$sel = "") {
while ( list( $key, $val ) = each($arr)) {
if($sel && $key == $sel) {
$select_v=" checked";
} else {
$select_v="";
}
echo "<input type=radio name="$name" value="$key" $select_v> $valn";
}
}
?>
|
|
|
Usage Example
|
|
|
Rate This Script
|
|
|
|