rulerofzu Posted June 23, 2011 Share Posted June 23, 2011 What you gonna do about negative numbers lucky? Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted June 23, 2011 Share Posted June 23, 2011 I would use an if statement if ($_POST['deposit'] <= 0) { echo ' Please ensure you only submit integers. '; } simple really... mres is not protecting it from going negative. Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted June 23, 2011 Share Posted June 23, 2011 neither is intval Quote Link to comment 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.