From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ukhas jean Sent: 27 October 2006 10:14 To: Active Perl Subject: how to know if a checkbox is checked or not in the SAME .cgi script??
> Hi, > > Was working on CGI and came across a situation. It is something like this. > I have a .cgi file, "A.cgi" ; I added a checkbox using CGI .pm, the following way:- > > ... > ... > my $q1 = new CGI; > my $chkbox = $q1->checkbox (-name => 'js', -checked => '0'); > print $chkbox; > ... > ... > > I was trying to write a function which would help me figure out whether this checkbox is "checked" or not; The documentation for checkboxes in 'perldoc CGI' describes how to do that. > BTW:: I wanted to make use of this function in this .cgi file itself. You can do it in any file you like, as long as it is the one executed by the web server when the form that the checkbox is part of is submitted. HTH -- Brian Raven _________________________________________ The information contained in this e-mail is confidential and solely for the intended addressee(s). Unauthorised reproduction, disclosure, modification, and/or distribution of this email may be unlawful. If you have received this email in error, please notify the sender immediately and delete it from your system. The views expressed in this message do not necessarily reflect those of Atos Euronext Market Solutions. _________________________________________ ================================= Atos Euronext Market Solutions Disclaimer ================================= The information contained in this e-mail is confidential and solely for the intended addressee(s). Unauthorised reproduction, disclosure, modification, and/or distribution of this email may be unlawful. If you have received this email in error, please notify the sender immediately and delete it from your system. The views expressed in this message do not necessarily reflect those of Atos Euronext Market Solutions. L'information contenue dans cet e-mail est confidentielle et uniquement destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee. Toute copie, publication ou diffusion de cet email est interdite. Si cet e-mail vous parvient par erreur, nous vous prions de bien vouloir prevenir l'expediteur immediatement et d'effacer le e-mail et annexes jointes de votre systeme. Le contenu de ce message electronique ne represente pas necessairement la position ou le point de vue d'Atos Euronext Market Solutions. _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
