JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
metaform working. added some encodings and formatters.
[wfpl.git] / encode.php
index 90ec6c8..c3c71a7 100644 (file)
@@ -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 '';
+       }
+}
+