Re: Delete

From: Date: Sun, 04 Jun 2006 08:11:13 +0000
Subject: Re: Delete
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-237339@lists.php.net to get a copy of this message
On 6/4/06, Larry Garfield <larry@garfieldtech.com> wrote:
Make each button a separate form, with the id as a hidden value. Like so: <div> <form method='post'> <p>My first entry</p> <input type='hidden' name='id' value='1' /> <input type='submit' value='Delete' /> </form> </div> [snip]
You may find it easier to generate links of the form delete.php?id=1, etc. Then you won't have to use a seperate form for each link. The id will be available in delete.php in $_GET. The same sanity checking applies in this case too. Rabin

« previous php.general (#237339) next »