Re: Re: <button> tag

From: Date: Tue, 20 Apr 2004 09:17:42 +0000
Subject: Re: Re: <button> tag
Groups: php.general 
Request: Send a blank email to php-general+get-183952@lists.php.net to get a copy of this message
>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"> So what if I want to know which button was pressed to submit the form? At the moment I have: switch ($_POST['submit']) { case "edit": ... case "new": ... } R.

« previous php.general (#183952) next »