PHP Classes

File: main/register.php

Recommend this page to a friend!
  Classes of Zamani   PHP Login System with Email Verification   main/register.php   Download  
File: main/register.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Login System with Email Verification
Register and login users activated using email
Author: By
Last change:
Date: 11 months ago
Size: 534 bytes
 

Contents

Class file image Download
<?php
require_once '../class/user.php';
require_once
'config.php';

$email = filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL);
$fname = filter_input(INPUT_POST, 'fname', FILTER_SANITIZE_STRING);
$lname = filter_input(INPUT_POST, 'lname', FILTER_SANITIZE_STRING);
$pass = filter_input(INPUT_POST, 'password', FILTER_DEFAULT);

if (
$user->registration($email, $fname, $lname, $pass)) {
    print
'A confirmation mail has been sent, please confirm your account registration!';
    die;
} else {
   
$user->printMsg();
    die;
}