Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 (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?
[LanX]: memories....I missed my connection while chatting
[Discipulus]: in this case Corion we are speaking about software licensing: evry year or two we must rescan the whole ced to produce an excel report, while at every activation / disactivation we update a black box DB: i said that i a week i can produce the perl to..
[Discipulus]: rend out the xls IF i have access to the DB
[choroba]: LanX I miss working in a bank sometimes...
[Corion]: Discipulus: Ooof. Especially yearly things are things I like to automate instead of trying to remember how I did things last year...
[Corion]: And the second rule that I've learned is, that there is no one-off job, so writing a program for it pays off almost immediately. The third rule is to give all my programs numbers and have them reproduce that number in the name of their output files. :)
[Discipulus]: the true part is that also specification change between years.. but well our job is cheap but dont abuse of us.. ;=)
[LanX]: Choroba: do you miss chaos with ties? apply at the US government.. ;)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (12)
As of 2017-03-29 12:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (350 votes). Check out past polls.