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 (Priest)
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") ) ...

Replies are listed 'Best First'.
Re^2: Web form to alter files is writing to file before submit button is pressed.
by Lady_Aleena (Curate) 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?
[afoken]: http://floating- point-gui.de/ ?
[haukex]: What Every Computer Scientist Should Know About Floating-Point Arithmetic?
[Discipulus]: the winner is..
[Discipulus]: Mr haukex from Germany! thanks a lot to the other parteciapant our dear Mr afoken.. ;=)
[Discipulus]: no, seriously thanks both, i missed 'scientist' and 'floating point' and the resarche was imposible..
Discipulus go to his cell to bookmark this
[haukex]: Well to be honest I just did a super search for "every should know floating" ;-)

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2017-06-26 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (594 votes). Check out past polls.