Dynamic Form Update
Posted: Thu Mar 29, 2012 3:52 pm
So I have a Checkout page right now basicly it looks like this (yes i know it looks sloppy)-
I am trying to make it dynamic with a page where you have to enter you student ID before you check out and when you leave a feild it adds a new one and validates the new one
Code: Select all
<?php
require_once('auth.php');
?>
<h1>Checkout Page</h1>
<?php
$pagename = "Checkout";
include 'connect.php';
?>
<html>
<?php
//form processing stuff nothing spical
//displays errors if any
<form action="#" method="post">
12 Digit Bar Code: <input name="barcode" type="text" size="12" value="12 Digit Bar Code"/><br>
12 Digit Patron Code:<input name="patron-code" type="text" size="12" value="Patron Code"/><br>
<input type="submit" value="Checkout"/>
</form>