• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Validating a field with specific number format

Validating a field with specific number format 12 years 9 months ago #18371

  • sentnel
  • sentnel's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hello! Im wondering how to validate that a form field, in which the values are required to be like "001-1234567-8" (three characters, dash, 7 characters, dash, 1 character) are entered correctly?

In my original html form I have this function:

function isCedula($ced) {
return preg_match('/^[0-9]{3}\-[0-9]{7}\-[0-9]{1}$/',$ced);

Thanks!
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!