- Posts: 10
- Thank you received: 0
Adding email verification in registration form
- Stefan Schröder
- Topic Author
- Offline
- New Member
-
Less
More
10 years 4 months ago #58417
by Stefan Schröder
Adding email verification in registration form was created by Stefan Schröder
Hi all,
I would like to make some custom changes to parts of the component and add email verification to the registration form of event booking pro. I found some php on web which I must modify, but currently I don't know, to which file I must add it. The goal for me would be, that if a registrant enters an invalid email adress in the registration form, a message appears that the email adress is invalid and the input is rejected,
This is the code I found.
Any help would be appreciated,
Regards
Stefan
I would like to make some custom changes to parts of the component and add email verification to the registration form of event booking pro. I found some php on web which I must modify, but currently I don't know, to which file I must add it. The goal for me would be, that if a registrant enters an invalid email adress in the registration form, a message appears that the email adress is invalid and the input is rejected,
This is the code I found.
Code:
function checkEmail($email) {
// checks proper syntax
// preg_match needs improvement!
if(preg_match("/^( [a-zA-Z0-9] )+( [a-zA-Z0-9\._-] )*@( [a-zA-Z0-9_-] )+( [a-zA-Z0-9\._-] +)+$/" , $email)) {
// gets domain name
list($username,$domain)=split('@',$email);
// checks for if MX records in the DNS
if(!checkdnsrr($domain, 'MX')) {
return false;
}
// attempts a socket connection to mail server
if(!fsockopen($domain,25,$errno,$errstr,30)) {
return false;
}
return true;
}
return false;
}
Code:
$email = trim($_POST['email']);
if(!checkEmail($email)) {
echo 'Invalid email address!';
}
else {
echo 'Email address is valid';
}
Any help would be appreciated,
Regards
Stefan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
10 years 4 months ago - 10 years 4 months ago #58422
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Adding email verification in registration form
Hi Stefan
The idea is creating a second email field and use validation rule to make the two fields become the same. Try to create a custom field, set Validation Rules property of that custom field to
Then check it again to see how it goes ?
Tuan
The idea is creating a second email field and use validation rule to make the two fields become the same. Try to create a custom field, set Validation Rules property of that custom field to
Code:
validate[equals[email]]
Then check it again to see how it goes ?
Tuan
Last edit: 10 years 4 months ago by Tuan Pham Ngoc.
The following user(s) said Thank You: Stefan Schröder
Please Log in or Create an account to join the conversation.
- Stefan Schröder
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
10 years 4 months ago #58597
by Stefan Schröder
Replied by Stefan Schröder on topic Adding email verification in registration form
Hi Tuan,
This is exactly what I will do.
Regards,
Stefan
Tuan Pham Ngoc wrote: Hi Stefan
The idea is creating a second email field and use validation rule to make the two fields become the same. Try to create a custom field, set Validation Rules property of that custom field to equals
This is exactly what I will do.
Regards,
Stefan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
10 years 4 months ago #58617
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Adding email verification in registration form
Did it work ? I guess It did 
Tuan

Tuan
Please Log in or Create an account to join the conversation.
- alkemiko
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 0
8 years 9 months ago #86439
by alkemiko
Replied by alkemiko on topic Adding email verification in registration form
Hello,
tested the solution but did'nt work.
Any help?
Alex
tested the solution but did'nt work.
Any help?
Alex
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
8 years 9 months ago #86475
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Adding email verification in registration form
If I remember correctly, you submitted a support ticket. Our support team is checking it. There is a javascript conflict on the site causes the validation / javascript in Events Booking doesn't work
We will update you when it is fixed. Please be patient and wait for us
Tuan
We will update you when it is fixed. Please be patient and wait for us
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.