LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: (Randal L. Schwartz) Date: Thu Dec 13 23:53:02 2007 Subject: Re: CGI query and FORM
>>>>> "Praki" == Praki <visitprakashindia@gmail.com> 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 <merlyn@stonehenge.com> <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!
| Navigate in group perl.beginners.cgi at sever nntp.perl.org | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |