function create_form_field($formelement, $label, $db_value = "", $length = 25) {
$form_field = "\n";
$form_field .= " if (isset($_REQUEST[$formelement])) {
$form_field .= $_REQUEST[$formelement];
} elseif (isset($db_value) && !isset($_REQUEST[$formelement])) {
$form_field .= $db_value;
} else {
$form_field .= "";
}
$form_field .= "\">
\n";
return $form_field;
}
// example use
echo "";
?>