File: fwphp/01mater/shop/account/account_login_register.php

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/01mater/shop/account/account_login_register.php  >  Download  
File: fwphp/01mater/shop/account/account_login_register.php
Role: Example script
Content type: text/plain
Description: Example script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change: ver 7.0.1 mnu, msg, mkd FUNCTIONAL namespaces, CRUD PDO trait, pretty URL-s
Date: 1 month ago
Size: 1,056 bytes
 

Contents

Class file image Download
<?php include '../view/header.php'; ?>
<?php
include '../view/sidebar.php'; ?>
<main>
    <h1>Login</h1>
    <form action="." method="post" id="login_form">
        <input type="hidden" name="action" value="login">
       
        <label>E-Mail:</label>
        <input type="text" name="email"
               value="<?php echo htmlspecialchars($email); ?>" size="30">
        <?php echo $fields->getField('email')->getHTML(); ?><br>

        <label>Password:</label>
        <input type="password" name="password" size="30">
        <?php echo $fields->getField('password')->getHTML(); ?><br>


        <input type="submit" value="Login">
        <?php if (!empty($password_message)) : ?>
        <span class="error"><?php echo htmlspecialchars($password_message); ?></span><br>
        <?php endif; ?>
</form>

    <h1>Register</h1>
    <form action="." method="post">
        <input type="hidden" name="action" value="view_register">
        <input type="submit" value="Register">
    </form>
</main>
<?php include '../view/footer.php'; ?>

For more information send a message to info at phpclasses dot org.