I’m attempting to create a custom registration page on our external website in PHP. This form is 7 pages long due to the amount of information required and I am looking to see if anyone has any ideas on how to do this properly in PHP.
My question is, how do I create such a form and preserve variable values, etc in the most convinient manner? Is something like this best served as a bunch of post variables or generating a type of viewstate such as below? (I found this example long ago somewhere, I've forgotten the source)
if (array_key_exists ("savestate", $_POST))
{
$savestate = unserialize (base64_decode ($_POST["savestate"]));
$savestate->count++;
}
else
{
$savestate = new stdObject;
$savestate->count = 0;
}
<html>
<body>
<form method="post">
<input type="hidden" value="<?=base64_encode(serialize($savestate));?>" name="savestate" />
<input type="submit" />
</form>
</body>
</html>
Any opinions are helpful. Thank you for your time.
Kirk