Hi, How would I go about populating an array through anchors (<a>)? I have several links that contain people names, and I want to put these into an array upon the user clicking them. The data inside the array will not always be the same, it all depends on what names the user clicks on. Cheers
Use a session, have the a tags link to your script along with the id of each name, then save the data in the session as an array
Do you have an example? im a little lost as to what you are asking but can almost certainly give you the code you need.
OK. Cheers Lukeg32. I have a page that contains a couple of links. Example: Dave James Steve Ian Kate <a href="#">Dave</a><a href="#">James</a><a href="#">Steve</a><a href="#">Ian</a><a href="#">Kate</a> Code (markup): A user clicks one of the links, how do I populate an array with the names that they have click. Example: If James and Ian's names were clicked, the array should look like the following when using print_r: Array { [0] => James [1] => Ian } Code (markup): Hope this helps