How to Sanitize
-
I’m writing a plugin where I need to sanitize and escape form data that’s being sent to the database & displayed in my admin page. I’ve been using https://codex.www.ads-software.com/Validating_Sanitizing_and_Escaping_User_Data#Escaping:_Securing_Output, however I can’t seem to get it working correctly. any help would be greatly appreciated!
<input type="radio" name="showit" value="Y" <?php echo $opt['ShowIt'] == 'Y' ? 'checked="checked"' : '' ?> /> <input type="text" name="loveit" value="<?php echo get_option('Love');?>" />
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to Sanitize’ is closed to new replies.