|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
Java window.document.location= 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 around YES. How do I stop this? Cheers |
|
#2
|
|||
|
|||
|
Turn off magic_quotes_gpc in php.ini or use:
$sql=stripslashes($sql);
__________________
FSBO (For Sale By Owner) Realty |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Java window.document.location= HELP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|