Iv'e a quick php question, im trying to get a table to display to the current page via a click on a nav link... I am creating a session called ['add_new_club'] $_SESSION['add_new_club'] = " code makes a table"; Then on my nav link <a href="<?php start_session($_SESSION['add_new_club']);?>">add new club</a> Then running an if statment to check if the session isset if (isset($_SESSION['add_new_club'])) { echo $_SESSION['add_new_club']; } Do you see what im trying to do? Do i need to POST the link and reload the page to catch the session? Any Ideas? Doo
I didn't get you exactly, but I think you have a table code stored in a session variable. Now you want to display this table when a link is clicked. If that is right, all you have to do is echo the table code like normal html but use a style=" visibility: hidden;" to hide the table. When the link is clicked, use javascript to change the "value" of visibility "attribute" to visible. regards
Thats great, thx. But JavaScript is not my strong point, do you have a snippet og code for that? Regards Doo
Try snooping around on Google, I'm sure you can find a script to do something you are similar to doing and then just modify it to fit your needs.