in reply to Can the same script create a form and then process the form's contents on Submit?

Certainly; this use of CGI is actually quite common. Probably the only thing you need to have is to include a HIDDEN form element that allows your script to determine what 'stage' it is in so that you can determine if it's the first visit or after they've pressed submit already. Typically, I do this by saying if this hidden element is undefined or doesn't match what I expect, I start with the blank forms; everything else is either redisplaying these or to present completion of tasks.

-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
"I can see my house from here!"
It's not what you know, but knowing how to find it if you don't know that's important

  • Comment on Re: Can the same script create a form and then process the form's contents on Submit?