I have a contact page and I am having trouble with the php reading the Name* field as the 5 characters because I am saving space on my webpage by putting the Name* inside the text area to begin with. I have researched on google and I can’t find any code to help ignore those characters. The php I have is posted below.
if(!$name || strlen($name) < 5) {
$error .= "Please enter your name.<br />";
}
So the problem I am running into is well maybe someone has a 3 letter name.
Here’s a tip: Don’t. Use a real label, don’t just dump the default text in the textbox. Besides, how does it save space?
Doesn’t make sense.
If you must, just add
|| $name == "Name*"in there.