I'm very new to PHP. I am currently trying to validate an html form before I pass the data on to a database. I want to make sure the data is in certain formats. For instance, I want the data in the variable $name to be a firstname followed by a space followed by a lastname. Can you use a regular expression to check data held by a variable? If so, could someone help me with the example listed above?
Thanks in advance for all your help!
Thanks in advance for all your help!