apw Posted October 17, 2008 Share Posted October 17, 2008 Hello again .. My question and problem is with handling forms. Most input with formr in my game deals with numbers but if i gets a player who wants to be funny and starts putting letters or even numbers and letters or other odd stray characters that doesnt belong how do i tell the code to handle this? I have strip_tags already in place and when decimals are used the form rounds. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/128886-php-and-forms/ Share on other sites More sharing options...
Maq Posted October 17, 2008 Share Posted October 17, 2008 When you check it in PHP use the is_numeric($var) function. It returns a boolean. Quote Link to comment https://forums.phpfreaks.com/topic/128886-php-and-forms/#findComment-668204 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.