in reply to Re: Web form to alter files is writing to file before submit button is pressed.
in thread Web form to alter files is writing to file before submit button is pressed.
since people can submit forms by hitting Enter on a text field, in which case the named submit button isn't referenced.
Just FWIW, last I heard, only IE does that. The other browsers will send a submit argument.
As for what to do to avoid that, I either check that the request is POST, or check for a required param's existence. If the request does something that is not read-only (like the OP's script seems to do), I'd very strongly consider changing the form submission to POST from GET.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Web form to alter files is writing to file before submit button is pressed.
by Anonymous Monk on Mar 11, 2012 at 09:59 UTC | |
by Anonymous Monk on Mar 11, 2012 at 13:05 UTC | |
by Anonymous Monk on Mar 12, 2012 at 07:45 UTC | |
by Lady_Aleena (Priest) on Mar 12, 2012 at 17:46 UTC |