Mar 6, 2001, 2:38 PM
Post #3 of 3
Or if you don't want to buy that solution from http://www.mitridat.com/cgi-perl-scripts/form-processing.html you can make your own using one of several known methods.
I am partial to the one that uses "hidden" tags and can be found as receipe 19.12 in the "Perl Cookbook".
If you have a multi-page form, then each page has its part of the form available as regular form elements and the user makes their changes. But all the elements from the other pages are also on the page using tags like...
Then a single script is used as the action from all the pages. If the user is done, then it goes and does its thing. But if they are just switching pages, it is responsible for building the page with the right part ready for manipulation and all the other parts included as hiddens.
<input type="hidden" name="firstname" value="R.">
Or you can store all the values you know about in a temporary file on the server until all the parts are there.
Or you can put it in a cookie, but if you have a form big enough to span several pages it is probably too much to store in a cookie.
I am told that the documentation for CGI.pm has more to say on this subject, but as I refuse to use it, I can not say for sure.
Sun Sep 9, 2001 - 1:46:40 GMT, a very special second in the epoch. How will you celebrate?