Comment Re:Hmmm ... not true (Score 1) 794
submit with the enterkey often also doesn't sent the name and value of the submit button in IE.
However, to rely on the value of the submit button is just plain silly; just check the request method in your script:
if ($_SERVER['REQUEST_METHOD'] == 'POST) { // a form has been posted
}
using name="submit" is newbeeish and has more disadvantages than advantages (ever ran into problems when you wanted to do a javascript submit on such a form? remove the name="submit" and it works - the name and value would not have been sent anyway even had it worked)
However, to rely on the value of the submit button is just plain silly; just check the request method in your script:
if ($_SERVER['REQUEST_METHOD'] == 'POST) {
}
using name="submit" is newbeeish and has more disadvantages than advantages (ever ran into problems when you wanted to do a javascript submit on such a form? remove the name="submit" and it works - the name and value would not have been sent anyway even had it worked)