var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
I have a question about forms in php and mysql.
Is a textbox safe to use or can someone run a script through it ?
If so how can I protect it? With what kind of script?
what does adslash and stripslash do?
any help would be greatly received
I use <textarea> for forms all the time. The entered data is viewed simply as text and added to the variable set by the name value. I have never had a problem like what you asked.
Stripslahses removed any backslashes from the code. Sometimes, you have \" in the code. The function changes it to ".
Adslashes adds the backslashes to the code. " -> \"
There is nothing inherently insecure about <textarea>, but you should never blindly execute something the user inputs. If it doesn't need to contain HTML or other code, run it through strip_tags. Also make sure the user isn't injecting SQL queries.