[member=76351]Pretty Homepages[/member] As I said, when doing API things I don’t check. The appications I work on are million dollar systems that the government uses and I can be held criminally negligent on a breach. I am quite sure you are not in the same situation. And the brain power I am around is far higher than your single competency level.
Until you can point to something reputable, ie other than your personal OPINION, it’s not factual. If the http requests does not come from the form, where is it coming from? Do I want to allow that kind of process to occur? No, I want it from the form that I provided or it would not be there.
As for this BS statement,
This weird pattern of checking submit button values to determine the request method is a PHPism used almost exclusively in low-level applications. When you look into other languages or more advanced PHP applications (which have routers or complete frameworks), you won't see this technique, because it simply doesn't make a lot of sense.
Let’s take a look at one of the largest frameworks:
After adding the AlbumForm to the use list, we implement addAction(). Let’s look at the addAction() code in a little more detail:
[php] $form = new AlbumForm();
$form->get(‘submit’)->setValue(‘Add’);
[/php]
We instantiate AlbumForm and set the label on the submit button to “Add”. We do this here as we’ll want to re-use the form when editing an album and will use a different label.
Taken from :
ZF2 form handling
Hmm the creators and maintainers of not only the language, but the largest framework, use a submit button with the label ‘Add’. Tell me again how frameworks don’t do this? Or how it is only low level applications?
As I said you are full of it and trying to impose your thoughts, however meaningless they are.