Re: CGI query and FORM
[email protected] ((Randal L. Schwartz))
| Newsgroups | perl.beginners.cgi |
|---|---|
| Organization | Stonehenge Consulting Services; Portland, Oregon, USA |
| Message-ID | <[email protected]> |
>>>>> "Praki" == Praki <[email protected]> writes: Praki> This comes first of all the lines in my cgi file. so it parse all the Praki> POST and GET methods.. Praki> i m not able to the values from FORM varible.. Praki> $query = new CGI; Praki> $sid = $query->cookie('CGISESSID') || $query->param('CGISESSID') || Praki> undef; Praki> after the abouve line Praki> if ($FORM{'lab'} eq "pager") { That's not how it works. See "perldoc CGI", and you'll find that %FORM is set up *only* if you especially ask for it. And that's only for backward compatibility... you would be better to use the "param()" calls: use CGI qw(param); if (param('lab') eq 'pager') { ... } -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[email protected]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!