Some good suggestions already. Here's a couple more that you cna use instead of/as well as:
Some ways you can keep track of which stage you are at in your script
- use a hidden variable or set of variables.
- use a cookie
- use the different button name method suggested above
- set additional path_info: e.g. URLs like http://www.site.com/cgi-bin/myscript.cgi/stage1 and http://www.site.com/cgi-bin/myscript.cgi/stage2
Alternatively you can create separate cgi scripts for stage 1,2 etc. (mystage1.cgi, mystage2.cgi) and make sure that the form created in stage on has the action to invoke stage 2 (use
start_form(-action=>'myscript2.cgi') - you need to do that for the path_info technique as well)
Dingus
Enter any 47-digit prime number to continue.