ok so Ive just switched hosts, n im finding oddly that forms which worked on the old host dont work on the new. ie.. pressing the submit button does nothing. Now on one or two of my forms id implemented a hidden field
<input type="hidden" name="_submit_check" value="1">
and id been saying
if (isset($submit) || array_key_exists('_submit_check', $_POST)) { //do stuff
and it seems those forms worked fine. so... what I really dont understand is WHY? Whats happening here? Is it correct to include a hidden field like this in all forms, even if they have several fields? I was only using it on forms where I had one field followed by a button so that hitting enter would submit the form. Alternately, is it ok for me to implement this on every form on my site? Would I be compromising my sercurity in any way by adding another condition under which said commands should be executed?