PHP Classes

File: account/register.php

Recommend this page to a friend!
  Classes of Mohamed Elbahja   PHP Secure Login Library   account/register.php   Download  
File: account/register.php
Role: Application script
Content type: text/plain
Description: Application script
Class: PHP Secure Login Library
Login users and start sessions in a MySQL database
Author: By
Last change:
Date: 6 years ago
Size: 2,520 bytes


Class file image Download
('INC_FILES', true);

SLS_DIR . '/autoload.php');

SlsCore\Data\Form as form;
SlsCore\Sls as sls;

$sls = new sls();

$sls->is_login() === true) {

<!DOCTYPE html>
<html >
    <meta charset="UTF-8">
    <!-- css -->
    <link rel='stylesheet' href='assets/css/bootstrap.min.css'>
    <link rel="stylesheet" href="assets/css/style.css">



      <div class="wrapper">

    <form class="form-signin" id="register" accept-charset="utf-8" method="POST">
      <h2 class="form-signin-heading">Register</h2>

      <div class="form-group">
      <?= (new form($sls->session))->token('register'); ?>
<input type="text" class="form-control" name="fname" id="fname" placeholder="First Name" />
      <input type="text" class="form-control" name="lname" id="lname" placeholder="Last Name" />
      <div class="form-group">
      <input type="text" class="form-control" name="username" id="username" placeholder="Username" />
      <input type="text" class="form-control" name="email" id="email" placeholder="Email Address" />

  <div class="form-group">
   <select class="form-control" id="gender" name="gender">
     <option value="male">Male</option>
     <option value="female">Female</option>

  <div class="form-group">
    <input type="password" class="form-control" name="password" id="password" placeholder="Password" />
    <input type="password" class="form-control" name="repassword" id="repassword" placeholder="Confirm password" />

  <div class="form-group">
    <div class="g-recaptcha" data-sitekey="<?= SITE_KEY; ?>"></div>

  <div class="form-group">
  <div id="form-message"></div>
  <div class="form-group">
      <button class="btn btn-lg btn-primary btn-block" id="btn-submit" type="submit">Register</button>

   <div id="form-group">
      <label class="pull-right">
       Already have account ? <a href="login.php"> Login</a>
   <!-- required js -->
   <script type="text/javascript" src="assets/js/jquery.js"></script>
   <script type="text/javascript" src="assets/js/jquery-validation.js"></script>
   <script src=''></script>
   <script type="text/javascript" src="assets/js/register.js"></script>