Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Sticky Forms

by f00li5h (Chaplain)
on Apr 16, 2007 at 09:36 UTC ( [id://610304]=note: print w/replies, xml ) Need Help??


in reply to Sticky Forms

You may want to have a look at CGI::FormBuilder. It's forms are sticky, and have both serverside and javascript validation.

It's neat.

Update I think that CGI.pm only makes forms "sticky" in as much as they preserve their values each time the form is submitted (ie CGI.pm automatically adds the value="stuff-from-form" when you use it's input method.

Even with this kind of stickyness, a link back to foo.cgi won't post the data to the form that foo.cgi generates, if you want to preserve data like that on the server side, you can look at CGI::Session, which will allow you to associate the contents of the form with an HTTP cookie sent to the browser.

@_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;

Replies are listed 'Best First'.
Re^2: Sticky Forms
by brennen (Novice) on Apr 17, 2007 at 17:25 UTC
    Although it won't by itself solve your problem, I will second the mention of CGI::FormBuilder. It does lots of very cool things and the documentation is quite good.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-20 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found