I have my own web site
I want a valid input to be entered by user i.e. User is not allowed to enter special characters like /* */, ', etc. . .
How can i prevent this?
What language are you using to handle the user input? PHP?
I am using PHP.
What will happen if i am using html and Java Script? Is it possible??
of course it’s possible, in fact, html is pretty much de rigueur if you want a web site
but talking to the database is a server side function, and you must use php (or something like it)
form field validation (e.g. to prevent “sql injection”) is done by php, so that only clean data gets in to the database
I’ve asked for this thread to be moved to the php forum
I am trying in PHP as it is server side.
Also I am using Form validation
but the problem is that i am new to php
so can you help me in how to handle such validations?
Probably worth having a read through that thread, to get the basics and good advice about PHP/MySQL.