Jump to content

Simple PHP Problem... Displaying a PHP page inside an area on a website...


barfastic

Recommended Posts

Hello Everyone,

 

My names is Mike, and I'm in a little bit of an emergency and i need your help.

 

OK so i have created a web-store that sells paintings on a localhost using WAMPserver. Everything is running smoothly, and i based it on a tutorial at phpwebcommerce.com.

 

My problem is quite simple. On my homepage, i have a left bar for navigation, a top section for the header image, a central area for information and browsing categories, and on the left i have a mini shopping cart. These are all included in the index.php which calls the respective file to show it on the index page.

 

When i click on a category of paintings, the central area shows all the paintings in that category. what i want to do is use that central area to portray FAQ's, or terms and conditions, return policies etc when the user clicks on the link on the left menu.

 

I have attached my index.php, leftnav.php, and the FAQ.php (which is just text)

 

So to rephrase, i want the central area to show the faq.php when the user clicks on it. If you need anymore files, please let me know... I'm sure its something quite simple that i have missed.

 

Thanks a lot, and i hope to become a regular on this forum, as i am starting to dwelve into the world of php :D

 

[attachment deleted by admin]

Link to comment
Share on other sites

ok, so i got that working, but now im having a different problem...

 

that tutorial doesnt provided a user registration or login function.

 

What i want to do now is allow the user to register, and when he/she is logged in, to fill out the shipping/billing address form automatically from a table called users for example, and if not logged in make the user to enter it manually.

 

 

 

 

 

[attachment deleted by admin]

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.