I have got some code java, 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 the new window is opened, and use the variable $sql it puts / in front of the inverted commas around YES.
How do I stop this?
Cheers