Okey Dokey...
I'm making a set of forms (something like 100 input fields that must be filled out per user). When I hit the submit button, the fields are placed into an array ($form1[fname], $form1[lname],...). That array has been declared as a session variable.
The problem happens when I want to change one of those fields and the corresponding value. IE, the user has forgotten to put something into the 'Color of Underwear' field. If I declare it as a $_SESSION or session_register() variable, it seems to be unchangeable.
Is there a way to override this? Or some way to work around it cleverly?
//Here's a sample of what's going on:
<?php
session_start();
session_register('form2');
?>
<body>
<html>
<form action="<?=$PHP_SELF?>" method="post" name="someForm" id="someForm">
<p>
<input name="form2[name]" type="text" id="form2[name]">
name<br>
<input name="form2[color]" type="text" id="form2[color]">
color<br>
<?
print "Form2 : <br>";
print_r ($form2);
?>
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<p><a href="<?=$PHP_SELF?>">Click here to continue</a> </p>
</html></body>