Re[2]: [PHP] Re: <button> tag

From: Date: Tue, 20 Apr 2004 09:24:14 +0000
Subject: Re[2]: [PHP] Re: <button> tag
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-183953@lists.php.net to get a copy of this message
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

« previous php.general (#183953) next »