Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by tangent (Deacon)
on Mar 10, 2012 at 17:46 UTC ( #958888=note: print w/ replies, xml ) Need Help??


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

If you change the line

line(5,q(<input type="submit" value="Make changes">));
to:
line(5,q(<input type="submit" name="make_changes" value="Make changes" +>));
then you can check if the button was clicked:
if ( $cgi->param("make_changes") ) ...


Comment on Re: Web form to alter files is writing to file before submit button is pressed.
Select or Download Code
Re^2: Web form to alter files is writing to file before submit button is pressed.
by Lady_Aleena (Deacon) on Mar 11, 2012 at 19:13 UTC

    I made this change, and it made a big difference. Thank you tangent for the help.

    Have a cookie and a very nice day!
    Lady Aleena

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2014-11-23 21:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (134 votes), past polls