CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
cgi.pm checkbox reset question

 



ningji
Novice

Nov 26, 2012, 7:54 AM

Post #1 of 1 (795 views)
cgi.pm checkbox reset question Can't Post

Hi everyone,

i have a simple checkbox page, everything is ok except the reset button.
Searched online a lot but didn't find a good sample yet.

if($q1->param("rsubmit") eq "Submit")
{
....
}
elsif($q1->param("rsubmit") eq "Reset")
{
$q1->reset();
}


......

print $q->Tr(
$q->td($q->submit(-name=>'rsubmit', -value => 'Submit')),
$q->td($q->submit(-name=>'rsubmit', -value => 'Reset')),
$q->td(' ')
);



anyone can show me a working sample ?
thanks a lot !

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives