Is it possible to do this? I have a couple of hundred HTML forms that I want to write 1 script to handle. Can perl cgi
get information from the HTML WITHOUT knowing the field name ahead of time? I would like to param the email address on the form (which is always in the email field, so I know that name), then just have the cgi script get everyting else from top to bottom. So if I have a form that has
email jdoe@me.here
kids 3
pet dog
computer dell optiplex
isp AOL
I use param to get the email address, then the script gets the name of the fields and the value of the fields and saves them to a file, so I can see not only the field value but the field name. Oh, and just to make it more interesting, there are a different number of fields on every form, so how do I deal with the dreaded "premature end of script header" error if the script can deal with 20 fields and the form only has 15? The main thing I need to know is CAN this be done? If so, then a sample of ONLY the code needed to get the field names and values would be great.
Thanks
Steve
get information from the HTML WITHOUT knowing the field name ahead of time? I would like to param the email address on the form (which is always in the email field, so I know that name), then just have the cgi script get everyting else from top to bottom. So if I have a form that has
email jdoe@me.here
kids 3
pet dog
computer dell optiplex
isp AOL
I use param to get the email address, then the script gets the name of the fields and the value of the fields and saves them to a file, so I can see not only the field value but the field name. Oh, and just to make it more interesting, there are a different number of fields on every form, so how do I deal with the dreaded "premature end of script header" error if the script can deal with 20 fields and the form only has 15? The main thing I need to know is CAN this be done? If so, then a sample of ONLY the code needed to get the field names and values would be great.
Thanks
Steve