Validation

naufal 01 Jul, 2009
Hi,

I have created a form using chronoform and have 3 doubts.

1.In that form contains one email text box.After registration automatically i want to send a message to the registered user with some custom text.It's just like a registration confirmation to the registered user.


2.That form contains one date field. how to apply validation to the date field ?
because my requirement is that date field for age. i want to check a validation that the age less than or equal to 30 with the current server date.Otherwise not accept the registration.


3. The form conatins lot of fields and i am using Passport no to identify each registered users and the passport no is unique.Then how can a apply a validation before saving data to the Db.If a user enter same passport no twice not accept the registration....

Anyone Please help me how to apply these validations and all.



Thanks in advance

N
Max_admin 02 Jul, 2009
Hi N,

#1- Dynamic To field with the field name which will hold the email address!

#2- Server side validation to compare the dates, you need some PHP lines to do that

#3- Server side validation to check if the same passport number in the database and block the submission if yes!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.