Greg (thied1) wrote in labgeeks,
Greg
thied1
labgeeks

Perl form

I've got it up at staff.washington.edu/ggt/form.cgi , but it isn't working right now with the changes I've made to it since yesterday.

I'm trying to set it up like the classroom request form, where all of the submissions and everything are done within the same file, but for some reason it doesn't like printing out HTML from an if statement. I'll have to poke at it more tomorrow.

Basically, I'm trying to get it to flow like:

-check for a form variable denoting whether the user is new or not.
-if new, show the form html
-if has submitted the form, check the data
-if the data is bad, return an error page with fields in it to correct the errors
-if the data is good, do stuff with it and show a confirmation page
  • Post a new comment

    Error

    default userpic
  • 1 comment