First let me say how much I have appreciated the contributors to this forum
and now on to business:
I want to process a form's input within the same script that displays the form. However, I want to have a separate page that demands a proper access code before the form is displayed. Checking for the proper access code is also done
on the second page that displays the form and then processes it's input. And that's where I can not solve the problem. Once the form is displayed, the submit
clicked,the page reloads and the variable holding the access code is blank. (I realize this could easily be solved with JavaScript.) Schematically here's the layout:
Page One:
Html form for access code, method post, action:process_program
Page Two🙁process_program)
if 'access code'== correct value
{
if 'submit'
{
// process input
perform queries, etc.
}
}
else
{
display form
}