php - How can I use ' without slash? -


i want post input box have single quote inside php file.i've used ' sends backslashes:

<input type="hidden" name="legal_natural" value="$store_info[&#39;legal_natural&#39;]"> 

result:

$store_info[\'legal_natural\'] 

please tell me how can avoid backslashes when post ' php file?

see : so question

here's answer question:

assume want send $content variable instead of stripping backslashes, consider use urlencode() instead of rawurlencode(). also, can use function once $content variable.

$content = urlencode($content); 

update: both urlencode , rawurlencode may not fit case. why don't send out $content without url encode? how send our query string? if using curl, not need encode parameters.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -