Here is what I've got. A script which reads in relevant part:
which is generating html which looks like this:print start_form (-action => url()), print hidden( -name => "function", -value => "subscribe"); print hidden( -name => "process", -value => "1");
Although more than one of us has gone on long bug hunts looking for that spurious numeral 1, that is not what this note is about.<input type="hidden" name="function" value="subscribe" /> <form method="post" action="http://electleyland.ca/supporters/supporte +rs.cgi" enctype="application/x-www-form-urlencoded"> 1<input type="hidden" name="process" value="1" /> <the rest of the form>
Due to the hidden definition of "function" falling outside of the <form></form> tags, that value is not being passed back to the dispatch logic, and this script is defaulting to my donation form, instead of proceeding to validate and process the subscription data just collected.
Any ideas why CGI might be scrambling the order of my start_form and print hidden(fields) lines?
All help is appreciated.
Thanks,
-- Hugh
In reply to Baffled by form behavior by hesco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |