PHP Classes

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

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/01mater/shop/account/address_edit.php  >  Download  
File: fwphp/01mater/shop/account/address_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,927 bytes


Class file image Download
<?php include '../view/header.php'; ?>
include '../view/sidebar.php'; ?>
    <h1><?php echo $heading; ?></h1>
    <div id="edit_address_form">
    <form action="." method="post">
        <input type="hidden" name="action" value="update_address">
        <input type="hidden" name="address_type" value="<?php echo $address_type ?>">
        <input type="text" name="line1"
               value="<?php echo htmlspecialchars($line1); ?>">
        <?php echo $fields->getField('line1')->getHTML(); ?><br>
        <label>Line 2:</label>
        <input type="text" name="line2"
               value="<?php echo htmlspecialchars($line2); ?>">
        <?php echo $fields->getField('line2')->getHTML(); ?><br>
        <input type="text" name="city"
               value="<?php echo htmlspecialchars($city); ?>">
        <?php echo $fields->getField('city')->getHTML(); ?><br>
        <input type="text" name="state"
               value="<?php echo htmlspecialchars($state); ?>">
        <?php echo $fields->getField('state')->getHTML(); ?><br>
        <label>Zip Code:</label>
        <input type="text" name="zip"
               value="<?php echo htmlspecialchars($zip); ?>">
        <?php echo $fields->getField('zip')->getHTML(); ?><br>
        <input type="text" name="phone"
               value="<?php echo htmlspecialchars($phone); ?>">
        <?php echo $fields->getField('phone')->getHTML(); ?><br>
        <input type="submit"
               value="<?php echo htmlspecialchars($heading); ?>">
    <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.