PHP Classes

File: example/activate.php

Recommend this page to a friend!
  Classes of Ashraf Gheith   PHP Secure Login and Registration   example/activate.php   Download  
File: example/activate.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Secure Login and Registration
Register and login users in a database with PDO
Author: By
Last change: Added filter_input instead accessing
Date: 7 years ago
Size: 336 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;
    }