PHP Classes

File: fwphp/01mater/shop/checkout/checkout_payment.php

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/01mater/shop/checkout/checkout_payment.php  >  Download  
File: fwphp/01mater/shop/checkout/checkout_payment.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary 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: 2,249 bytes


Class file image Download
<?php include '../view/header.php'; ?>
    <h2>Billing Address</h2>
    <p><?php echo htmlspecialchars($billing_address['line1']); ?><br>
        <?php if ( strlen($billing_address['line2']) > 0 ) : ?>
<?php echo htmlspecialchars($billing_address['line2']); ?><br>
        <?php endif; ?>
<?php echo htmlspecialchars($billing_address['city'] . ', ' .
$billing_address['state'] . ' ' .
$billing_address['zipCode']); ?><br>
        <?php echo htmlspecialchars($billing_address['phone']); ?>
    <form action="../account" method="post">
        <input type="hidden" name="action" value="edit_billing">
        <input type="submit" value="Edit Billing Address">
    <h2>Payment Information</h2>
    <form action="." method="post" id="payment_form">
        <input type="hidden" name="action" value="process">
        <label>Card Type:</label>
        <select name="card_type">
            <option value="1">MasterCard</option>
            <option value="2">Visa</option>
            <option value="3">Discover</option>
            <option value="4">American Express</option>

        <label>Card Number:</label>
        <input type="text" name="card_number"
               value="<?php echo htmlspecialchars($card_number); ?>">
        <span class="error"><?php echo $cc_number_message; ?></span>
        <span>No dashes or spaces.</span>

        <input type="text" name="card_cvv"
               value="<?php echo htmlspecialchars($card_cvv); ?>">
        <span class="error"><?php echo $cc_ccv_message; ?></span>

        <input type="text" name="card_expires"
               value="<?php echo htmlspecialchars($card_expires); ?>">
        <span class="error"><?php echo $cc_expiration_message; ?></span>

        <input type="submit" value="Place Order">&nbsp;&nbsp;
        <span>Click only once.</span>
    <form action="../cart" method="post" >
        <input type="submit" value="Cancel Payment Entry">
<?php include '../view/footer.php'; ?>

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