Monkuar Posted January 17, 2012 Share Posted January 17, 2012 if ($ibforums->input['display0'] == 0 OR $ibforums->input['display0'] == 1){ // }else{ $std->Error2("You're being Nawty!"); } and I just used tamper data to test my code and i put "csef" or whatever in the field, and it passes.... doesn't error out, something is wrong how do I check the input so it will only ACCEPT 0-10 (INTEGERS) (NOTHING ELSE) ? Quote Link to comment https://forums.phpfreaks.com/topic/255239-php-security-not-working/ Share on other sites More sharing options...
Monkuar Posted January 17, 2012 Author Share Posted January 17, 2012 OK EASY FIXED JUST CHANGED = 0 to = "0" TOPIC RESOLVED!! Quote Link to comment https://forums.phpfreaks.com/topic/255239-php-security-not-working/#findComment-1308641 Share on other sites More sharing options...
scootstah Posted January 17, 2012 Share Posted January 17, 2012 If you only want integers then you can simply use is_numeric() Quote Link to comment https://forums.phpfreaks.com/topic/255239-php-security-not-working/#findComment-1308646 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.