Hi Mitch.
Best of using sessions for this kind of thing. here is an example:
on the first page have this at the top of the code/HTML
<?php
session_start();
require_once('common_functions.php');
$_SESSION['form1_data']='';
?>
where require once is
<?php
// Quote variable to make safe
function quote_smart($value)
{
// Stripslashes
if (get_magic_quotes_gpc()) {
$value = stripslashes($value);
}
// Quote if not integer
if (!is_numeric($value)) {
$value = "'" . mysql_real_escape_string($value) . "'";
}
return $value;
}
?>
then on your formhandler page you can do an insert for each textbox in the form and its corresponding field in the database
<?php
include("connect.php");
session_start();
require_once('common_functions.php');
$_SESSION['form1_data'] = $_POST;
$sql = "INSERT INTO tableno SET id = NULL ";
foreach ($_SESSION['form1_data'] as $col =>$val ){
if($col <> 'submit'){
$sql .=", $col = '$val' ";
}
}
this should get you started