Forums

Controls about date of birth and user subscription

giuxmian 10 Jul, 2014
Hi,

In my form ChronoForms I would like to create two controls.

Subscribing users
I'd like to prevent same user can register himself two or more times.
I found the field to use for check and, on this field, I would like to set a code in which if the user tries to register himself more than once there is a message that says that user already exists.
How can I do?

Control day and month of birth
I have created two DropBox fields to permit to set user his day and month of birth.
Now I would like to enter a code to prevent a user can write a non-existent date (example: April 31st).
How can I do?

Thank you
GreyHead 10 Jul, 2014
Hi giuxmian,

The best way to do both of these is probably with Custom Serverside validation.

Bob
giuxmian 13 Jul, 2014
Hi Bob,

I've seen your answer.

This is situation:
user set a birth date in dd/mm/yyyy format by dropdow fields (one for day, one for month, one for year)

I'd want to check user has set a correct format date; I don't want user set a date like 31st April or 31 September etc.

I'd to ask to you if you can help me to create a php code that have to do that check.

Thanks
giuxmian 13 Jul, 2014
Hi Bob,

thanks a lot
This topic is locked and no more replies can be posted.