> -----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]