I have this wonderful piece of code from here
But if some one edits the form through firebug or disable the js then this wont work, I want to have server side validation for this function, can anyone direct me to the right path please
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The following php code will give you the number of new lines in the text data:
the use of
nl2br()is to support the different new lines formats (\r\n, \n\r, \n y \r)Test: