john_6767 Posted November 3, 2006 Share Posted November 3, 2006 how do i stop php from replacing my & with & ???here is my variable i am using as a url..[code]$editFormAction .= "&GP_upload=true";[/code]when i run it the & is replaced with & Quote Link to comment https://forums.phpfreaks.com/topic/26002-php-replacing-my-with-amp-how-do-i-stop-this/ Share on other sites More sharing options...
btherl Posted November 3, 2006 Share Posted November 3, 2006 Where do you see it being replaced with & ? I suspect that it occurs somewhere else, not in that piece of code you have pasted. Quote Link to comment https://forums.phpfreaks.com/topic/26002-php-replacing-my-with-amp-how-do-i-stop-this/#findComment-118893 Share on other sites More sharing options...
wildteen88 Posted November 3, 2006 Share Posted November 3, 2006 Your PHP setup might have the following setting: [b]arg_separator.output[/b] set to & which will helps to keep XHTML compliance for your website. If you dont want PHP to do this the add the following to the top of you php script:[code=php:0]ini_set("arg_separator.output", "&");[/code]Or add the following to a .htaccess file[code]php_value arg_separator.output "&"[/code] Quote Link to comment https://forums.phpfreaks.com/topic/26002-php-replacing-my-with-amp-how-do-i-stop-this/#findComment-119212 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.