David Gilden wrote:
> 
> What is causing CGI.pm to generate the following?
> There no print statements for hidden fields!!!
> 
> Thanks,
> Dave
> 
> # in my script ---
> use CGI qw/:standard/;
> use CGI::Carp qw(fatalsToBrowser);
> 
> # later in the code
> 
>  checkbox( -name =>$gig_num, -checked =>0, -label=>' ' ,override=>1)
> 
> # removing   override=>1   makes no difference!
> -------
> 
> the output the browser receives:
> <INPUT TYPE="hidden" NAME=".cgifields" VALUE="1">
> <INPUT TYPE="hidden" NAME=".cgifields" VALUE="2">
> <INPUT TYPE="hidden" NAME=".cgifields" VALUE="3">
> </FORM>

perldoc CGI is a good place to start:

PRAGMAS

       In addition to the function sets, there are a number of
       pragmas that you can import.  Pragmas, which are always
       preceded by a hyphen, change the way that CGI.pm functions
       in various ways.  Pragmas, function sets, and individual
       functions can all be imported in the same use() line.  For
       example, the following use statement imports the standard
       set of functions and enables debugging mode (pragma
       -debug):

          use CGI qw/:standard -debug/;

       The current list of pragmas is as follows:

       ...

       -nosticky
           This makes CGI.pm not generating the hidden fields
           .submit and .cgifields. It is very useful if you don't
           want to have the hidden fields appear in the
           querystring in a GET method.  For example, a search
           script generated this way will have a very nice url
           with search parameters for bookmarking.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to