Hello Richard,

Tuesday, April 20, 2004, 10:17:42 AM, you wrote:

>>In all fairness to IE, it WILL send the value of each button - but PHP
>>cannot distinguish between them all because you have given them all
>>the same name! :)
>>
>>RL> Does <input type='submit'...> allow this sort of functionality?
>>
>>If it has a unique name, sure:
>>
>><input type="submit" name="something-unique">

RL> So what if I want to know which button was pressed to submit the form?

You should have 1 submit button per form - which doesn't mean you
cannot have more than 1 form per page. I.e. one form for "add", one
for "edit", etc. They can all have the same action/method (i.e. go to
the same PHP script).

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to