Welcome Guest, Not a member yet? Register   Sign In
Escape quotes/strip slashes.
#4

[eluser]xzela[/eluser]
I'll have to assume that you're throwing this into a javascript string. You should probably to use PHPs 'htmlspecialchars' method.

try this:
Code:
<?php
//fields that could have quotes
$park_name = htmlspecialchars($row->park_name);
$park_city = htmlspecialchars($row->park_city;
$park_state = htmlspecialchars($row->park_city);
?>


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



Theme © iAndrew 2016 - Forum software by © MyBB