Forums

Booking System

Qlim4X 05 Mar, 2009
hi

i have create a booking form and i want to compare the two values of the date fields. is this possible? can i add custom code in the submit button so the user must insert correct dates?
GreyHead 05 Mar, 2009
Hi Qlim4X,

How exactly do you want to compare them? There was a post a month or two ago with a booking form where the second date needs to be after the first; this might help.

Bob
Qlim4X 05 Mar, 2009
can you post the link?

i want the second date to be larger than first.

and if it is possible the day difference. and some validation code for the button
Max_admin 06 Mar, 2009
Hi,

try to use the server side validation with the PHP function strtotime!

Cheers
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
GreyHead 07 Mar, 2009
Hi Qlim4x,

The previous thread is here - this should work for you with some changes to the layout I think.

Bob
This topic is locked and no more replies can be posted.