PHP Classes

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

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/01mater/shop/account/account_edit.php  >  Download  
File: fwphp/01mater/shop/account/account_edit.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: 3 months ago
Size: 1,583 bytes


Class file image Download
<?php include '../view/header.php'; ?>
include '../view/sidebar.php'; ?>
    <h1>Edit Account</h1>
    <div id="edit_account_form">
    <form action="." method="post">
        <input type="hidden" name="action" value="update_account">
        <input type="text" name="email"
               value="<?php echo htmlspecialchars($email); ?>">
        <?php echo $fields->getField('email')->getHTML(); ?><br>
        <label>First Name:</label>
        <input type="text" name="first_name"
               value="<?php echo htmlspecialchars($first_name); ?>">
        <?php echo $fields->getField('first_name')->getHTML(); ?><br>
        <label>Last Name:</label>
        <input type="text" name="last_name"
               value="<?php echo htmlspecialchars($last_name); ?>">
        <?php echo $fields->getField('last_name')->getHTML(); ?><br>

        <label>New Password:</label>
        <input type="password" name="password_1">&nbsp;&nbsp;
        <?php echo $fields->getField('password_1')->getHTML(); ?>
<span class="error"><?php echo $password_message; ?></span><br>

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

        <input type="submit" value="Update Account"><br>
    <form action="." method="post">
        <input type="submit" value="Cancel">
<?php include '../view/footer.php'; ?>

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