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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.