barfastic Posted April 1, 2009 Share Posted April 1, 2009 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 [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
taquitosensei Posted April 1, 2009 Share Posted April 1, 2009 Do an link back to the same page like <a href='index.php?content=faq'>FAQ</a> then load the content div based on $_GET['content'] Quote Link to comment Share on other sites More sharing options...
barfastic Posted April 1, 2009 Author Share Posted April 1, 2009 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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.