Page 1 of 1

Dynamic Form Update

Posted: Thu Mar 29, 2012 3:52 pm
by rileychilds
So I have a Checkout page right now basicly it looks like this (yes i know it looks sloppy)-

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>

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

Re: Dynamic Form Update

Posted: Thu Mar 29, 2012 3:54 pm
by Celauran
I don't see anything in the code above. What have you tried? Where are you running into trouble?

Re: Dynamic Form Update

Posted: Thu Mar 29, 2012 4:02 pm
by rileychilds
I don't understand how to do it i've looked around but don't understand it, does anyone know any good articles on this topic?