Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
chargill -
my apologies - i knew that it wasn't enough for you to really see what's going on, but what i'm working on is private information, and i didn't want to create a dummy db to demonstrate. what i have come up with as a workaround is to add ", -value=>'', -override=>1" to each field, as follows: setting each value to '' doesn't do it without including the -override=>1 so, this works, but it seems like there must be an easier, more efficient way! in answer to your inquiries about the rest of my code: 1. #!/usr/bin/perl, 2. use CGI qw/:standard/;, the top of my script is:3. the bit of CGI code that displays the button called 'New Entry',i've tried putting -nosticky into the use CGI statement: use CGI qw(:standard, -nosticky); which didn't clear the fields. and i also put '-nosticky' into each of the fields, again, without success (the previous field values remain). i've tried adding the line $q->delete_all(); above the code creating the form when "submit = 'New Entry'", which also doesn't work to clear the field values. print submit(-name=>'submit',-value=>'New Entry'); the main conditionals that are run look like:4. enough data stuffed into perhaps __DATA__ to recreate the problem. the source of the DATA is from a sql statement, as shown above....not sure how to show you this, since it's confidential. In reply to Re^4: how to use -nosticky in CGI?
by jck
|
|