In a form I have an ID field, which needs to check that the first letter is "P" and is 5 characters long.
I have looked into preg_match but I have no idea how to get it working. It seems to be able to check how many "P"s the would be and where they are, but how do I get that to check that only entries starting with "P" are passed.
Big time PHP noobie so doesn't need to be anything awesome. I really don't get PHP. :(