|
From: Culley H. <cu...@fa...> - 2004-04-13 13:50:13
|
Hurm. You are right this was just a browser issue. I changed the button value to 'test' and it follows the redirect. Unfortunately in a more complicated real-world example where all the buttons have values I am still seeing this problem. I will spend some more time on this and try to get you another working example. I suspect that most of the time people will be testing properly formed html but I suppose it could happen that you might have to write test cases for a garbage form like this. Number 2 would work even though theoretically someone could have 3 or 4 buttons on a form with no values and different names. I don't know what the point of such a form would be but it could happen I guess. How about both? Try your best to guess and maybe throw a php warning so it will notify the user but not kill the process. culley On Apr 12, 2004, at 4:54 PM, Marcus Baker wrote: > There are two issues raised by this: > 1) Should I throw a PHP error (exception) if the label is not present > in the form? > 2) Should I have a default value that just submits the first > type=submit button it finds? > > Culley, do you think I should add either of these behaviours? |