View Single Post
  #2 (permalink)  
Old 2003-03-25, 05:13 PM
stuart's Avatar
stuart stuart is offline
Administrator
 
Join Date: Jan 2003
Location: Scotland
Posts: 472
stuart will become famous soon enoughstuart will become famous soon enough
Send a message via MSN to stuart
Default

Well you need to do something like this:

Code:
<?

// you could create temp vars

$field1 = $_POST['field1'];

$field2 = $_POST['fiels2'];

// ... and so on.



// show the form fields to the user

echo "<b>Field1:</b> $field1<br/>";

echo "<b>Field2:</b> $field<br/>";

?>

<form name="validate" method="post" action="dbscript.php">

<input type="hidden" name="field1" value="<?=$field1?>">

<input type="hidden" name="field2" value="<?=$field2?>">

<input type="submit" name="submit" value="continue">

</form>
As you can see you need to use hidden fields to store the values - then this will allow you to pass them to the next page.

hope this helps

Stuart
Reply With Quote