in reply to Web form to alter files is writing to file before submit button is pressed.
If you change the line
to:line(5,q(<input type="submit" value="Make changes">));
then you can check if the button was clicked:line(5,q(<input type="submit" name="make_changes" value="Make changes" +>));
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 (Priest) on Mar 11, 2012 at 19:13 UTC |
In Section
Seekers of Perl Wisdom