Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Welcome to the Monastery
 
PerlMonks  

Re^2: Web form to alter files is writing to file before submit button is pressed.

by Lady_Aleena (Chaplain)
on Mar 11, 2012 at 19:26 UTC ( #959000=note: print w/ replies, xml ) Need Help??


in reply to Re: Web form to alter files is writing to file before submit button is pressed.
in thread Web form to alter files is writing to file before submit button is pressed.

Thank you for mentioning hitting enter. I should have considered that in the original post.

Have a cookie and a very nice day!
Lady Aleena


Comment on Re^2: Web form to alter files is writing to file before submit button is pressed.
Re^3: Web form to alter files is writing to file before submit button is pressed.
by tangent (Chaplain) on Mar 11, 2012 at 19:44 UTC
    I often use CGI::Minimal to see what is going on with form inputs. It has a handy function called "calling_parms_table()" which returns a HTML table of all form and environment variables. It will show you what happens when you hit Enter instead of pressing the button - the result seems to vary across different browsers. This becomes important if, say, you had two buttons on the form: make_changes and undo_changes.

      "calling_parms_table()"

      CGI/CGI::Simple provide

      my $q = CGI->new; print $cgi->header(), $q->dump, '<hr>', CGI->new( \%ENV )->Dump;

      I don't think I'd use CGI::Minimal, it appears to be too not well tested, the bug cue is very empty

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://959000]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2014-04-16 20:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (433 votes), past polls