UUUUUUUgggggggg!!
What's that horrible smell?
Oh it must be Greenberg's Feces-For-Brains.
Haven't solved the problem entirely yet, but know how to.
Let's see if I'm the sole generator of that horrid odor:
Current code:
OnLoad, Hide Layer2, open a mySQL database and pull a random record. The record consists of a trivia question, four potential answers, an indicator for the correct answer (not shown), and an award %, to be awarded if the answer entered, below, was correct. Display this on Layer1.
A <select> has an A,B.C,D choice and a submit button. The answer is shored in "answer", the action is "". When the form is submitted, I hide Layer1 and show Layer2. Layer2 displays the question, the correct answer, your status and, if correct, your award. There is a continue button, when clicked it hides layer 1 and 2, then starts again.
The problem was that it appeared as soon as layer1's submit was hit, layer2 popped up for a brief second, then it and the question on layer1 disappeared and a new question and its answers showed up.
By sticking a "return false" in layer 1's Onclick, the clearing problem was resolved, but the data in the <select> was never making it to layer2. Hence the title of this thread. If the action on the submit was to an external php, all was right with the world.
Okay, all the clues are there. Did you find the bug?
Hints: Killing the submit killed the apparent problem but caused other problems. Action="something.php" worked whereas Action="" did not.
Answer: look at what I did on my OnLoad. Clear Layer1&2, generate a new question and display it on Layer1, get the answer, display layer2, and wait for a click. Except this form is self-submitting (action="") and as soon as you submitted, it immediately called the OnLoad, which cleared the screen. And so on, forever.
Yup, that icky smell is the feces-for-brains I have to live with.
Thanks all for your attempts to help and sorry to have wasted so many people's time.
Grumpily, with tail between legs,
Ross