Rasher's Toolbox

Back

checked / selected

-- Simple html checks for use on form elements.

Description

No description available. See source for details.

Source

Published under the terms of the BSD License

<?php
function selected($is$shouldbe) {
    if (
$is == $shouldbe) {
        return 
" SELECTED";
    }
}

function 
checked($checked) {
    if (
$checked=='yes') {
        return 
" CHECKED";
    }
}
?>

Last updated: Sat Jun 14 20:02:44 CEST 2008

Valid XHTML 1.0! Valid HTML 3.2!