Jump to content

Email + String Validation before register.


xferx

Recommended Posts

Hi I have a bitty of a problem.

 

In the authentication screen where you either log in as a member or create an account i must limit the registration to those who are members of a "card club" i already added the field for the card itself as $cif and works fine. For now I dont have time anymore to go very fanzy with it so i just want this:

 

- Before the register in the "Type in your email" screen to have another field for the Card.

- The system will be able to validate that the email is a valid email string and that the number is a 23 digit number.

- You can continue to the registration form IF you have a valid email and card number OR if you have a valid email only.

 

Ive tryed many ways editing my way on "authentication.tpl", "address.php", "authcontroller.php" and "validate.php" but im unable to make it work.

 

Help!

Link to comment
Share on other sites

Soon my problem will grow whan i have to make it fanzy... Ill have to validate that the email and the card number exist in a remote database and i must do this validation via webservice and i dont have a clue where to start. But well that will be the next problem... for now i just want to make this first one work.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...