01hanstu Posted March 16, 2012 Share Posted March 16, 2012 Hi, I hope someone can help. I currently have a page that includes the main page after login, however I am looking into changing this so that when a user logs in they get 3/4 linked images that, when clicked dynamically load/include the page based on the select i.e. user selects the image laptop, that has a hyperlink, it loads the laptop page. If anyone has any ideas or suggestion,i'd appreciate it. Link to comment https://forums.phpfreaks.com/topic/259075-dynamic-php-pages/ Share on other sites More sharing options...
RussellReal Posted March 16, 2012 Share Posted March 16, 2012 I'm sorry, I didn't quite understand the question.. Can you please post maybe some: 1. Better details on what you're trying to accomplish 2. Code you've done to try to accomplish this 3. Maybe a link of something similar to what you want to accomplish? - Only if 1 and 2 cannot be supplied. Thanks! Russell Link to comment https://forums.phpfreaks.com/topic/259075-dynamic-php-pages/#findComment-1328208 Share on other sites More sharing options...
01hanstu Posted March 16, 2012 Author Share Posted March 16, 2012 Apologies for not being clear. How the system is running at present: index.php checks to see if the user is logged in. If they are not it shows the form to login. If they are logged in it 'includes' another file: if($session->logged_in){ ."<a href=\"Auth/userrrinfo.php?user=$session->username\">My Account</a>;" ."<a href=\"Auth/useredit.php\">Edit Account</a>;"; if($session->isAdmin()){ echo "<a href=\"Auth/admin/admin.php\">Admin Center</a;"; } include("bookingindex.php"); Instead of it just loading bookingindex.php when the user hits the page, Im thrying to achieving a solution where it shows images on the top bar and when the user click on the link i.e. laptop booking it includes laptopindex.php Hope this is clearer, and makes sence . Link to comment https://forums.phpfreaks.com/topic/259075-dynamic-php-pages/#findComment-1328222 Share on other sites More sharing options...
RussellReal Posted March 17, 2012 Share Posted March 17, 2012 You can most likely change the bookingindex.php include to like.. include('loginsplash.php'); then in loginsplash.php, write up some html to show images in <a> tags, and link to the respective posts Link to comment https://forums.phpfreaks.com/topic/259075-dynamic-php-pages/#findComment-1328409 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.