Im attempting one of my first web applications in PHP.
There is a text box a user inputs text and clicks send. When send is clicked or when they are typing I want it to give the user an error message if they are entering forbidden characters.
But I cant really see a way to do it effectively in PHP.
Can anyone tell me what programming language would be best for this and maybe links if that would help.
However, I do not want anyone to give me the complete code for this, otherwise there is no challenge in it for me.
Thanks guys
You can use Javascript (with or without jQuery) to realtime validation. Or you use PHP to a server-side validation with IF conditionals.
Javascript Validation Sample:
http://www.w3schools.com/js/js_form_validation.asp
— EDIT —
I recommend you validate first in the Javascript and later in PHP, because with FireBug users can edit the Javascript validation script.