Re: Very simple forms processing question

From: Date: Mon, 08 Mar 2004 17:54:55 +0000
Subject: Re: Very simple forms processing question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-179801@lists.php.net to get a copy of this message
if you asign a name to your submit button a corresponding element will be created on the $_REQUEST, $_GET or $_POST array whichever you are using eg you should use <input type="submit" name="submit1" value="click me"> etc all the best john@johnallsopp.co.uk wrote:
Hi I want to set up a mailing list on a site, and I want a very simple register/deregister facility. So a text field for the email address, then an [add] button and a [remove] button. Now, what I really want is for both [add] and [remove] to be 'submit' type HTML buttons for the same form, but at the destination script I don't know how to tell which button was pressed, and I've a feeling I should only have one submit button. I can do what I want JavaScript, but can I do it just with PHP? Any clues, or am I not being clear? Cheers J
-- Raditha Dissanayake. ----------------------------------------------------------------------- http://www.radinks.net/ftp/applet/ An applet that breaks all the rules. Reads, Writes and Deletes files on your hard disk. Uploads what's left to a third party server.

« previous php.general (#179801) next »