Page 1 of 1

problem with ?id

Posted: Fri Oct 07, 2005 3:44 am
by nutstretch
I have a testbed on my machine which i use to test my code first.
on my page i have a link as below
<p><h3><a href="products.php?id=Travel Bag">Handbags</a><img src="gifs/dot.gif" alt="Designer Handbags" width="2" height="2" border="0"></h3></p>

on the php page i use the following to get the id.

$choice=$_GET['id'];

This works well on my machine but falls over when I upload the pages and returns no results. Please can someone shed some light onto this for me.

Do I need to put it in some other way

Thanks in anticipation

Nuts

Posted: Fri Oct 07, 2005 4:16 am
by n00b Saibot
remove spaces in your links or change to underscore as some server settings mess up such data

Posted: Fri Oct 07, 2005 4:55 am
by mysqlautobackup
Please try relpace the space to %20

<p><h3><a href="products.php?id=Travel%20Bag">Handbags</a><img src="gifs/dot.gif" alt="Designer Handbags" width="2" height="2" border="0"></h3></p>

OK?

Posted: Fri Oct 07, 2005 5:11 am
by n00b Saibot
mysqlautobackup wrote:Please try relpace the space to %20

<p><h3><a href="products.php?id=Travel%20Bag">Handbags</a><img src="gifs/dot.gif" alt="Designer Handbags" width="2" height="2" border="0"></h3></p>

OK?
those %20 will still translate to spaces....