Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by tangent (Priest)
on Mar 11, 2012 at 19:44 UTC ( #959003=note: print w/replies, xml ) Need Help??


in reply to Re^2: 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.

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.
  • Comment on Re^3: Web form to alter files is writing to file before submit button is pressed.

Replies are listed 'Best First'.
Re^4: Web form to alter files is writing to file before submit button is pressed.
by Anonymous Monk on Mar 12, 2012 at 08:05 UTC

    "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://959003]
help
Chatterbox?
[shmem]: karlgoethebier: isn't bike riding a way of fixing lumbago?
[karlgoethebier]: shmem: scheiss technik
[karlgoethebier]: shmem: yes - i f you manage it to get on the bike. and pray if you must stop...
[shmem]: in the french alpes, at the end of a gravel road, we had a beer at a hut - and heard an enduro coming up.
[shmem]: not by the road, but from there below where you wouldn't want to walk.
[shmem]: the biker stopped the machine at the table and took off his helmet.
[shmem]: long white hair, long beard the same, then he proceeded to get off the bike

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2017-06-25 20:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (570 votes). Check out past polls.