ok let me try to explain what im doing:
page1. search for customer
page2. display results
ok no problems there, just simple select * from customer and put into table
page3. display customer details in text box for editing
ive used this:
$row = mysql_fetch_array($result);
$formVars = array();
$formVars["firstname"] = $row["cust_fname"];
$formVars["surname"] = $row["cust_sname"];
$formVars["address"] = $row["cust_address"];
$formVars["postcode"] = $row["cust_postcode"];
$formVars["telephone"] = $row["cust_tel"];
$formVars["email"] = $row["cust_email"];
$formVars["card"] = $row["cust_cc"];
so formVars["firstname"] is equal to the fname (which is in mysql databse)
This page displays the information on the screen from the database so i know that formvars are showing information as they are displayed like:
<input type="text" name="firstname"
value="<? echo $formVars["firstname"]; ?>" size=50></td>
page4. take the edited values and store in database
you have guessed correctly, formVars are not being passed : echo $formVars["firstname"]; does not display anything
its here: http://www.lgu.ac.uk/~cghe11/finalsite/customersearch.html
search for "test"