• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Escape quotes/strip slashes.

#10
[eluser]jrutter[/eluser]
I owe you a big thanks! With your help, I got it working! Thank you so much!

Here is the code:

Code:
<?php $park_id = $row->park_id;?>
            <?php $park_name = $row->park_name;?>
            <?php $park_city = $row->park_city;?>
            <?php $park_state = $row->park_state;?>
            <?php $park_lat = $row->park_latitude;?>
            <?php $park_long = $row->park_longitude;?>
            &lt;?php $string = "<a >" . $park_name . "</a><br>" . $park_city. "," . $park_state; ?&gt;
            
            &lt;?php $infoHTML = addslashes($string); ?&gt;
            
        var infoHTML = "&lt;?php echo $infoHTML; ?&gt;";


Messages In This Thread
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 02:13 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 05:32 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 05:42 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 06:00 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 06:04 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 06:06 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 06:15 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 06:58 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 07:18 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 07:41 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.