Advertisement

04.07.2008 at 10:31AM PDT, ID: 23302093 | Points: 500
[x]
Attachment Details

friendly url

Asked by Rollyn64 in PHP Scripting Language, Miscellaneous Web Development, E-Commerce

Tags: PHP, MYSQL, Safari/3.0, www.rolandomartins.net

On my shopping cart, I pass variables like this:

http://www.mysite.pt/site/index.php?m=produtos&c=125&p=38

and I want something more friendly, like

http://www.mysite.pt/site/something/

Without showing the variable. The tricky thing is my index page loads different included pages, controlled by a switch function, and I want each of this loaded page, looking like:

http://www.mysite.pt/site/categories

if is a category page

http://www.mysite.pt/site/products

if is a product page

http://www.mysite.pt/site/something

if is a something page.

The page is controlled by a variable called "m".

This is quite difficult for me. I would appreciate some help.

Thank you.Start Free Trial
[+][-]04.07.2008 at 11:00AM PDT, ID: 21299116

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 11:11AM PDT, ID: 21299233

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 01:47PM PDT, ID: 21300420

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 01:48PM PDT, ID: 21300429

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 01:49PM PDT, ID: 21300434

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 11:01PM PDT, ID: 21302895

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628