|more useful options|
perl CGI form ignores valueby anothersmurf (Novice)
|on Sep 17, 2012 at 00:20 UTC||Need Help??|
anothersmurf has asked for the
wisdom of the Perl Monks concerning the following question:
I have some code where default values for textfields() are supplied from a database.
I have occasion to call the app with a different value, but I want the different value to be ignored and the default value from the database to be used.
I've tried setting it with -override in the textfield() as well as calling param() to set it specifically, but the output on the webpage is always the POST-supplied information instead of the -value=>"db data".
Any idea on how I can make it listen to me?
For now I have forced a redirect so it pulls data from the database (as there is no supplied data). It works fine, but it seems like a hack. It seems like there should be a way for the form value to be programmed, ignoring the POST parameter.