Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Get the value of cPath= to use in a script


Diniel

Recommended Posts

"Simple if you know how"... I'd like to be able to grab the category for a page such as www.domain.com/catalog/index.php?cPath=43_50_134

 

How can I capture just the 134?

 

If I use $_GET['cPath'] then I get 43_50_134. I guess I need to have a line of PHP to ignore everything up to and including the last _, but I don't know how to go about that.

 

I'd very much appreciate a couple of minutes of your time if you know how to get that going :)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...