Should be easy, but new to programming. Please Help!

I have got some code, as follows;

var SQL=" WHERE "

if(document.forms.pubsearch.food.value=="1")

{

SQL=SQL+"Food = 'YES'"

}

window.document.location="pubs.php?offset=0&sql="+SQL;

But when I open the new window, and use the variable $sql (php) it puts / in front of the inverted commas.

How do I stop this?

Cheers

[386 byte] By [Munch1] at [2007-9-26 1:22:47]
# 1
This doesn't look like Java. Are you sure you are asking in the right place?
DrClap at 2007-6-29 1:00:21 > top of Java-index,Archived Forums,Java Programming...