Jump to content

Dynamic PHP Pages


01hanstu

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.