Check Email is Already Registered in Database using Ajax and JavaScript.

Hey,Welcome to shortlearner, today we will see how to check that email is already registered in database, with the use of ajax and java-script.
Most of the time we see that the user is registering same  email id  in database and it is registered in the database without checking that it was already registered in database.

but with the help of ajax and java-script we can show our users that their email is registered or not registered in our database by showing them a message.

How to Send Mail Using Php Mailer.

In this post we will see that how we can send mail using Phpmailer. Before Start Tutorial we should know about what is Phpmailer , benefits of Phpmailer than we learn how to implement code for Php mailer.

what is Phpmailer

PHP Mailer is a code library to send emails safely and easily via PHP code from a web server.
phpmailer is a collection of classes which allows user to send mail via smtp seetings.
A user can easily configure php mailer according to his/her needs.

Benefits of Phpmailer over mail() function

php provides us mail() function allows us to send mails to user but it has certain limitations, mail() function send mail but it has very slow response ,mail() function does not assure the sending of mail.

How to hide extension of html and php file.?

welcome back to shortlearner.com , In this tutorial  we will see how to hide extension of files using .htaccess
before start learning first of all we should  know about .htaccess file
what is .htaccess

hide extension of url using htaccess
in a simple words we can say that the .htaccess is a configuration file for use on web servers running the
Apache Web Server software. When a .htaccess file is placed in a directory
which is in turn ‘loaded via the Apache Web Server’,
then the .htaccess file is detected and executed by the Apache Web Server software.

Also Read :
PHP Login Script With Remember me.
Change password using javascript, php and mysqli.
Password and Confirm Password Validation Using JavaScript
Check Email is Already Registered in Database using Ajax and JavaScript.
How to hide extension of html and php file.?

Benefits of using .htaccess

  • Redirect the user to different page
  • Password protect a specific directory
  • Block users by IP
  • Preventing hot linking of your images
  • Rewrite URIs
  • Specify your own Error Documents

In this tutorial we make 3 php pages and hide there extensions using .htaccess file.
index.php

Signup.php

Login.php

Save below code with .htaccess

 

Add Google reCAPTCHA On Registration form

In this post we will see how to add google reCaptcha in signup form.

Google has released the new reCAPTCHA. Using reCAPTCHA users can prove they are human without solving a CAPTCHA. They need just a single click to confirm they are not a robot. So, reCAPTCHA will protect your website from spam with better user experience. You can easily integrate Google reCAPTCHA in PHP script.
Now We have create a signup/ registration form with the new Google reCAPTCHA using PHP.The reCAPTCHA integration process is given below.

First of all we need reCAPTCHA API keys:
For adding reCAPTCHA to your website, you need to register your site and get reCAPTCHA API keys.
Register your site

Also Read :
PHP Login Script With Remember me.
Change password using javascript, php and mysqli.
Password and Confirm Password Validation Using JavaScript
Check Email is Already Registered in Database using Ajax and JavaScript.
How to hide extension of html and php file.?

Register your site at Google just click on the below link – https://www.google.com/recaptcha/admin

after click on above link here you got 2 keys.
first is site key which is used for showing captecha on client site
and another is secret key which is used to check the captecha on server end.

Connection.php

in this page we make our database connection.

index.php

In the index.php we make a signup form.

signup.php

KEEP LEARNING