Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by tangent (Curate)
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
Replies are listed 'Best First'.
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 romping around the Monastery: (17)
As of 2015-07-30 18:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls