Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Cascading CGI forms

by b10m (Vicar)
on Apr 15, 2005 at 15:40 UTC ( [id://448229]=note: print w/replies, xml ) Need Help??


in reply to Cascading CGI forms

There are multiple ways you can tackle this

  1. Sessions
  2. Cookies
  3. Hidden inputs

Try something like this:

if ($q->param('submit1') eq 'submit1') { $index="Some val"; print "DEBUG after 1st submit " . $index . "<br>"; print $q->hidden('index', $index); print $q->submit(-name=>"submit2", -label=>"submit2") . " ", }

Later in the script, you can then 'recover' the value with $q->param('index')

--
b10m

All code is usually tested, but rarely trusted.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://448229]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-26 06:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found