Missing ? in url

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dallasmc16
Forum Newbie
Posts: 1
Joined: Thu Feb 11, 2010 10:05 pm

Missing ? in url

Post by dallasmc16 »

Hi,

I've done a bit of research on this topic but still haven't come across the answer.

On my index page I am able to get a direct link into the product page for my ecommerce site:
(eg. ../retail/product_info.php?products_id=5).

But when I click on the categories page:
(eg. ../index.php?cPath=6)

and then click on the product it misses the ? in the url:
(eg. ../retail/product_info.phpproducts_id=5) - missing ? between php and products.

Is there an easy fix for this as it only seems to happen when I click through from a category page.

Let me know if I need to show any code examples.

All help will be appreciated.


Cheers,


Dallas
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Missing ? in url

Post by social_experiment »

and then click on the product it misses the ? in the url:
(eg. ../retail/product_info.phpproducts_id=5) - missing ? between php and products.
It's probably that the '?' wasn't inserted in the code that prints the url 'product_info.php?products_id=5'.

Is this in all urls named 'product_info.phpproducts_id=*' ?
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply