Home: Fun With Perl: Perl Quizzes - Learn Perl the Fun Way:
How to het the Html Button Click event in Perl?



talk2mishal
Novice

Oct 7, 2008, 7:58 PM


Views: 40889
How to het the Html Button Click event in Perl?

Hi,
As i m newbie for the Perl With Html Button.
The scenario is like this:

I have HTML button in the perl Script.

I have to get the Data of Enable checkbox Data using the button click event in perl

And I have to copy/cut that Enable checkbox Data to the Other Folder in the SystemAnywhere.



Please provide some Source code or links.

Thanking you with an anticipation in advance.


FishMonger
Veteran / Moderator

Nov 8, 2008, 7:31 AM


Views: 39734
Re: [talk2mishal] How to het the Html Button Click event in Perl?


In Reply To
Hi,
As i m newbie for the Perl With Html Button.
The scenario is like this:

I have HTML button in the perl Script.

I have to get the Data of Enable checkbox Data using the button click event in perl

And I have to copy/cut that Enable checkbox Data to the Other Folder in the SystemAnywhere.



Please provide some Source code or links.


Perl does not have the "button click event" in cgi scripts, but it does have it in Tk scripts. So, what type of script are you writing?

If you're needing to retrieve the value of an HTML form field, then read the documentation for the CGI module, specifically the section on the param() method/function.
http://search.cpan.org/~lds/CGI.pm-3.42/CGI.pm

If you need the "click event" from a web page button, then you need to look at using javascript.


(This post was edited by FishMonger on Nov 8, 2008, 7:31 AM)