• 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: Validate time (tips & tricks)

Validate time (tips & tricks) 12 years 7 months ago #14797

  • baetensb
  • baetensb's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 4
If you want to check whether the time filled in is in the correct format, add the following script to "/components/com_rsform/helpers/validation.php":
function isValidTime($param)
{
	return (preg_match("/^([0-1][0-9]|[2][0-3]):([0-5][0-9])$/", $param));
 
}
Last Edit: 12 years 7 months ago by baetensb. Reason: smily appeared instead of code
The administrator has disabled public write access.
The following user(s) said Thank You: webcat-solutions
  • 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!