PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Yer I know that much, I want each text field to have no less than 4 characters, so the code says < 4.
But its only stoping if the first field has less than 4 characters, If $fn2 has no data it should stop as there are less than 4 characters in that field etc..
This will work, and therefore the problem exists somewhere else. Maybe in the value of the $fn variables or what you think the values of those variables are, but not in the quoted code.
Jim_Bo, that won't work. As long as either variable has less than 4 characters, the code will be executed even if the other variable has more than 4 characters.
wyred wrote:Jim_Bo, that won't work. As long as either variable has less than 4 characters, the code will be executed even if the other variable has more than 4 characters.