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 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. Link to comment https://forums.phpfreaks.com/topic/128886-php-and-forms/#findComment-668204 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.