Hello, i have a normal form when the user selects submit it calls the function on the same page to validate the form. My problem is when the form is validated how do i pass all those varables to another page where i can process that information further?
Note: my form is very large with about 20 different fields!
Example code
<?php
/* What should we do? */
$action=$_POST['a'];
if ($action == 'error_check') {
require_once('include/errorcheck.php');
//If no errors, go to confirm details
if ($errors==0) {
// need to pass all the variables to the next page here
}
}
?>
<html><body>
<form name="form1" method="POST" action="index2.php">
<input name="deposit" type="text" id="deposit" value="<?php echo $deposit ?>">
<input name="phonenumber" type="text" id="phonenumber" value="<?php echo $phonenumber; ?>">
<input type="hidden" name="a" value="error_check">
<input type="submit" name="Submit" value="Submit">
</form>
</body</html>