Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- miem kuen choi cheung
October 2, 2004, 4:51 am
rate this thread
Re: CGI PROBLEM
Are you using CGI.pm? I definitely recommend Dr. Lincoln Stein's book
on it. I had to order it on Amazon because the local book stores
don't carry it.
then, for example, a text field is written like this:
print textfield(-name=>'myfield', -value=>'my default text');
The text field will now show 'my default text' when you first load the
form. If the form is reloaded, the default behavior is for the
textfield to retain it's previous value ('stickiness') which is a
feature but it can cause headaches if you forget it. Make it forget
it's previous value like this:
print textfield(-name=>'myfield', -override=>1, -value=>'my default
print textfield(-name=>'myfield', -force=>1, -value=>'my default
I like to place override after name for some reason, but being an
anonymous hash, the order is not important.
Sorry if I told you something you already knew. I am the biggest Perl
newbie ever so it's hard to believe I could teach anyone anything new
at this point, but I'm working on it.