PHP Classes

File: example/js/main.js

Recommend this page to a friend!
  Classes of Ashraf Gheith   PHP Secure Login and Registration   example/js/main.js   Download  
File: example/js/main.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Secure Login and Registration
Register and login users in a database with PDO
Author: By
Last change: Fix of registration problem mentioned by San Hiscio
Date: 7 years ago
Size: 610 bytes
 

Contents

Class file image Download
$(function() { $('#login-form-link').click(function(e) { $("#login-form").delay(100).fadeIn(100); $("#register-form").fadeOut(100); $('#register-form-link').removeClass('active'); $(this).addClass('active'); e.preventDefault(); }); $('#register-form-link').click(function(e) { $("#register-form").delay(100).fadeIn(100); $("#login-form").fadeOut(100); $('#login-form-link').removeClass('active'); $(this).addClass('active'); e.preventDefault(); }); }); function validateEmail($email) { var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,})?$/; return emailReg.test( $email ); }