Dysan Posted November 20, 2007 Share Posted November 20, 2007 Hello, I have a page containing 5 links, each link has a different ID number at the end. (Shown in Bold) http://localhost/Memory.php?action=add&id=1 http://localhost/Memory.php?action=add&id=2 http://localhost/Memory.php?action=add&id=3 http://localhost/Memory.php?action=add&id=4 http://localhost/Memory.php?action=add&id=5 Each time a link is clicked, how do I add the id at the end of each link, to an array? But, if array already contains that particular ID, how do I display a message notifying the user e.g. "Already Added!" Once in the array, how do I output the items in the array to the screen, along with a remove button. Upon clicking the remove button, how do I delete the appropriate id from the array. The remove link will be in the form of the following: http://localhost/Memory.php?action=delete&id=1 http://localhost/Memory.php?action=delete&id=2 http://localhost/Memory.php?action=delete&id=3 http://localhost/Memory.php?action=delete&id=4 http://localhost/Memory.php?action=delete&id=5 Quote Link to comment Share on other sites More sharing options...
Wes1890 Posted November 20, 2007 Share Posted November 20, 2007 ^ It would have to have a DB or flat file structure for saving the arrays (since it will be accessed by many users) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.