On 6/4/06, Larry Garfield <larry@xxxxxxxxxxxxxxxx> 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php