Hi there.. I'm quite a noob in PHP.. I'm working with Joomla at the moment.. and I'm supposed to check whether or not the fields in the user registration form are filled with the correct format.. For example, the user name should have this sort of format NNN-NNN-NNN.. How do I check if the field is correctly filled by the user with the correct format? If the format is wrong, then the user shouldn't be allowed to proceed with the registration...
I'm really sorry but PHP isn't properly taught at our school and I'm having a hard time with it :( Thanks to those who are willing to help :)

Post the code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.