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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -