| Code: |
|
function print_input($name, $value="", $input_type="TEXT", $js="", $size="", $maxlength="", $checked="", $dsbl="") {
if (!empty($checked)) $checked = " " . $checked; print ( "<INPUT TYPE=\"" . $input_type . "\" NAME=\"" . $name . "\"" . $checked ); if ( $value != '' ) print (" VALUE=\"" . $value . "\""); if ( !empty($size) ) print (" SIZE=\"" . $size . "\""); if ( !empty($maxlength) ) print (" MAXLENGTH=\"" . $maxlength . "\""); if ( !empty($dsbl) ) print (" DISABLED "); print ($js . ">\n" ); } |