On 03/02/2009, Colin Guthrie <[email protected]> wrote:
>
> 'Twas brillig, and Tim Fountain at 03/02/09 10:00 did gyre and gimble:
>
>> There can be good reason to include the name attribute on submits. E.g.
>> your form might contain two submit buttons ('Approve' and 'Reject'), and you
>> use the submitted name in order to determine which was pressed.
>>
>
> Personally, I don't like that approach as it use UI/i10n elements to
> determine application logic.
>
> 'Approve' and 'Reject' would have to be compared to their i10n versions in
> a multilingual app and it just doesn't feel right to do that. Perhaps I'm
> alone with this opinion tho' :)


Sorry, my example wasn't very clear. The 'name' of the elements would be
what you'd check in your application logic, and these are never shown to the
user. 'Approve' and 'Reject' would be the 'value' of the submits, so these
could be anything depending on your i10n settings.

-- 
Tim Fountain
http://tfountain.co.uk/

Reply via email to