Re: Saving param after new recall of a cgi script
[email protected] (Robert Roggenbuck) Fri, 27 Nov 2009 10:42:25 +0100
| Newsgroups | perl.beginners.cgi |
|---|---|
| Message-ID | <[email protected]> |
You should store the values from step 2 at step 3 in hidden parameters (<input type="hidden" ...>). The You can access them via CGI in step 4. An alternative would be storing the whole CGI-object in a file using Data::Dumper and recreate it using 'do $file'. Greetings Robert Marek schrieb: > Hello all! > > > Hope that I can explain my problem clearly: > > 1. I have a long form, created from a "xyz.cgi" (action="" that means > is empty) > 2. The user fills up the form and sends (action="send") The > parameters are send with an self reference to the same "xyz.cgi". This > script examines with several routines the user-input. If everything is > alright the script is sending back a > 3. confirmation page, which is containing also a form, but only with > one button: "cancel" and everything as text, which where filled into > the first form. This page is saying, that everything is alright so > far. But if the user has some doubts, or if there has been an error, > he may push the button "cancel" > 4. The cancel-page (action="cancel") should show once again the > parameters of step 3, which the user filled up in step 2 ... > > How do I save the parameters from the first input? I tried everything, > but there is nothing kept in my array. Do I have to save these > parameters into an external file? > > > Hope that my English was explaining good enough my problem. The script > itself is much to long ... > > Best greetings from Munich > > > marek > >