Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: CGI.pm form clearing

by ColtsFoot (Chaplain)
on Aug 12, 2002 at 13:33 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-16 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found