X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=encode.php;h=c3c71a7bb8a4613e7d27f697b564868d67b0e38e;hb=c6b6624fdc65060f3a54d9902b28c8c103da7709;hp=90ec6c8ac6c99e99fdf272bbc966dc0e7763d508;hpb=3bec0ef771d741361c6c4c4c1ff069398f6e37a0;p=wfpl.git diff --git a/encode.php b/encode.php index 90ec6c8..c3c71a7 100644 --- a/encode.php +++ b/encode.php @@ -37,4 +37,13 @@ function enc_attr($str) { return $str; } +# this is a stupid hack to work around html's stupid syntax for checkboxes +function enc_checked($str) { + if($str == 'Yes') { + return '" checked="checked'; + } else { + return ''; + } +} +