Well, reading all the posts here, I am not sure what the final answer here is. (If I had my way, it would be a sign telling people "DONT use IE!" because in Firefox, this is a moot point.)
Basically, this is a 2-part form, and here is the logic.
if(isset($_POST['form1_submit']))
{
require 'form1_processor.php'; // process input from Form #1
include("form1_errors.php");
if(count($errors) == 0) // no errors
{
require 'form2.php'; // displays Form #2
}
else
{
if(isset($_POST['reset']))
{
$_SESSION = array();//initalize the array
session_destroy();//reset was pressed, destroy all the session data
}
require 'form1.php'; // re-displays Form #1
}
}
elseif(isset($_POST['form2_submit']))
{
require 'form2_processor.php'; // processes data from Form #2
include("form2_errors.php");
if(count($errors) == 0)
{
include("vote.php");
include('success.php'); // all done
exit;
}
else
{
include("form2_errors.php");
require 'form2.php'; // re-display Form #2
}
}
else
{
if(isset($_POST['reset']))
{
$_SESSION = array();//initalize the array
session_destroy();//reset was pressed, destroy all the session data
}
require 'form1.php'; // display Form # 1
}
And what I do on the forms, is I use SESSIONS to store the data, so if I need to re-display the page, the user data is stored so they do not have to fill it out again.
Form 1 is the users basic data (name, address, grades they have taught (the 1st array of checkboxes) etc and what videos of ours they have used (the 2nd array of checkboxes).
I use an errors function to test if they filled out all the required fields and to validate that they rated all the videos selected from Form1.
Form 1 has the Rating radio buttons from Form 1 and the comments section.
The issue (with IE only) is if they hit the Back button for any reason, it messes everything up.
In Firefox, none of this is an issue at all. Everything works perfect.
Does that make my it clearer or more clouded?
Thanks for taking the time to help, and continued guidance,
Don