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? Link to comment https://forums.phpfreaks.com/topic/151548-minimum-value-of-2-in-box/ 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.. Link to comment https://forums.phpfreaks.com/topic/151548-minimum-value-of-2-in-box/#findComment-795985 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.