PHP Classes

File: main/activate.php

Recommend this page to a friend!
  Classes of Zamani   PHP Login System with Email Verification   main/activate.php   Download  
File: main/activate.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: 292 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);
$code = filter_input(INPUT_POST, 'code', FILTER_DEFAULT);

if (
$user->emailActivation($email, $code)) {
    die;
} else {
   
$user->printMsg();
    die;
}