php - Treating & as normal character with $_GET -


i have application posts content mysql db via php. php uses $_get pull content url , inserts db.

this works great, have discovered issue. if user enters characters (", &, , others), $_get method not separate content url.

let's user posts content: love blue & green

in situation, & symbol cuts string after word blue.

is there way me edit php file ignore & symbol , treat part of variable supposed $_get? great!

you can use $_server['query_string']

from http://php.net/manual/en/reserved.variables.server.php


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -