Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: Multi page form

by Purdy (Hermit)
on Sep 28, 2005 at 15:21 UTC ( #495792=note: print w/replies, xml ) Need Help??


in reply to Re^2: Multi page form
in thread Multi page form

Did you get my latest code?

In regards to your original code, my guess is that action parameter for your form is invalid. I've never done it that way - I've instead used hidden fields. So in your $action eq 'add' branch, set the action of the form to the name of your cgi script. Then add a hidden field:

# ... }elsif($action eq "add"){ print start_html(-title=>$title.' Enter your name'); print start_form(-action=>"myscript.cgi"), # is that the name? hidden( 'action', 'add' ), textfield('name','Enter Your name',20), submit('submit'),reset, end_form,end_html; # ...

HTH & Have Fun!

- Jason

PS: Drop by the #cgiapp channel & we can help you further...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2019-12-10 19:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?