I have a simple PHP script feedback form that I would like to improve by adding the $ _SERVER [HTTP_USER_AGENT] data to the row in the database that I save.
I keep getting parsing errors when trying a simple insert, passing '$ _SERVER [HTTP_USER_AGENT]' as a typical string. Should I bind it somehow so that the characters used in this server variable do not cause such errors?
(The INSERT query works without this field, by the way.)
Thank.
source
share