Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: CGI.pm form clearing

by ColtsFoot (Chaplain)
on Aug 12, 2002 at 13:33 UTC ( #189481=note: print w/replies, xml ) Need Help??


in reply to CGI.pm form clearing

Try setting -override=>1 as in the code below
#!/usr/bin/perl -w use strict; use CGI; use CGI::Carp qw(fatalsToBrowser); my $page = new CGI; print $page->header(); print $page->start_html(); print $page->startform(-method=>'POST'); print $page->textfield(-name=>'field1', override=>1); print $page->submit(-name=>'submit', -value=>'Submit'); print $page->endform(); print $page->end_html;
the -override parameter is accepted by all methods that
generate form elements.

Hope this helps

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2022-05-17 14:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (65 votes). Check out past polls.

    Notices?