flemingmike Posted March 28, 2009 Share Posted March 28, 2009 hi, if i have : <td width='60%' valign='center' align='center' background='$config[cellbg]'> <input type='text' name='login[points]' value='$login[points]' class='input' size='5' maxlength='10'> </td> how can i make sure the minimum value entered in the box is 2.00? Quote Link to comment Share on other sites More sharing options...
Cory94bailly Posted March 28, 2009 Share Posted March 28, 2009 if(strlen($_POST['login[points]']) < 2) { //CODE FOR IF IT'S LESS THAN 2 } else { //CODE FOR IF IT'S MORE THAN 2 } Try that.. 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.