Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Re: Making CGI.pm forget

Reply
Thread Tools

Re: Making CGI.pm forget

 
 
Xho Jingleheimerschmidt
Guest
Posts: n/a
 
      06-20-2012
On 06/19/2012 08:51 AM, Bernie Cosell wrote:
> One aspect of CGI.pm that I've never liked is that it tries to 'remember'
> form variables from one page to the next --- and worse makes it hard to
> change a value, preferring to ignore your attempts to change the value and
> keep the old one unless you go to some bother.


Is reading the documentation "some bother"?

-nosticky
By default the CGI module implements a state-preserving
behavior called "sticky" fields. The way this works is that if you are
regenerating a form, the methods that generate the form field values
will interrogate param() to see if similarly-named parameters are
present in the query string. If they find a like-named parameter, they
will use it to set their default values.

Sometimes this isn't what you want. The -nosticky pragma
prevents this behavior. You can also selectively change the sticky
behavior in each element that you generate.

END DOC

Xho
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Making CGI.pm forget ccc31807 Perl Misc 0 07-11-2012 08:37 PM
Re: Making CGI.pm forget J. Strübig Perl Misc 0 06-20-2012 09:25 AM
Re: Making CGI.pm forget Wolf Behrenhoff Perl Misc 0 06-19-2012 04:05 PM
Don't Forget Jtyc MCSE 0 08-13-2003 08:37 PM
Re: Make text boxes "forget" values Emil Kvarnhammar ASP .Net 0 07-16-2003 07:53 AM



Advertisments