Using this:
   param('last_message_num', $message_num);
   print hidden(-name => 'last_message_num');

will work too, but for some reason it still worked for me on another
script I was writing when I did

   print hidden(-name => "name",
                -default => "value",
                -override => "1");

====================
Brian Arnold
[EMAIL PROTECTED]

-----Original Message-----
From: Bob Showalter [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 17, 2001 3:41 PM
To: 'David Gilden'; [EMAIL PROTECTED]
Subject: RE: CGI.pm hidden field problem 


> -----Original Message-----
> From: David Gilden [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 17, 2001 12:56 PM
> To: [EMAIL PROTECTED]
> Subject: CGI.pm hidden field problem
> 
> 
> Hello,
> 
> I am taking a stab at a SQL driven guest-book,
> the problem is with getting the <hidden> field to take the 
> value of $message_num, (see the end of this script)
> I can see it in the <!-- print statement --> ok, 
> but not in the hidden field (I have tried with override and 
> with out -- not sure what this is for!)
>
> ...
>
> print "<!-- $message_num  -->\n";
> print hidden(
> -name => last_message_num,
> -value => $message_num, 
> # -override=> 1
> );

Try this:

   param('last_message_num', $message_num);
   print hidden(-name => 'last_message_num');

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


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

Reply via email to