Start New Discussion Reply to this Discussion Simple validation of a html form
Basically I have a password reset field and in order for the password reset to be processed the user needs to enter their first name, last name, D.O.B and email address.
The first name, last name and email address are required fields, the rest are just additional security measures. My question is - is there any way to simply turn the box border red if nothing is entered?
I've tried numerous jquery plugins, tutorials to no avail. I think it is because the page itself has alot of other javascript and sql queries running.
Any help would be great.
Related Article: HTML FORM
is a Web Design, HTML and CSS discussion thread by rrlogu that has 6 replies, was last updated 9 months ago and has been tagged with the keywords: html, form, not, passing, correct, value, stripslashes(html_entity_decode()).
Kamboodle
Newbie Poster
16 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
i haven't implemented this, yet.
however, you can use, Css border & Javascript styling property..
,such as you can call a function onblur() in javascript,..
and in that function, you can change the border property of all the input boxes, using their id,..
Zahinize
Newbie Poster
9 posts since Nov 2011
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0
Hi friend
I think u r right. This a very boring process. Only E-mail address is enough. And it is possible. In database verification part u can fixed is by option.
Munni
webdesignbd
Newbie Poster
1 post since Nov 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
security at the db level requires, input validation at the hardmost level, otherwise it is just a matter of time, your security breaches..
well, if you have learnt php, or java, in php..
preg_match() function is the best for limiting user input and making your application secured..
Zahinize
Newbie Poster
9 posts since Nov 2011
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0
Basically I have a password reset field and in order for the password reset to be processed the user needs to enter their first name, last name, D.O.B and email address.
The first name, last name and email address are required fields, the rest are just additional security measures. My question is - is there any way to simply turn the box border red if nothing is entered?
I've tried numerous jquery plugins, tutorials to no avail. I think it is because the page itself has alot of other javascript and sql queries running.
Any help would be great.
Yes, it can be done using JavaScript. This page will be useful to you
http://www.w3schools.com/js/js_form_validation.asp
parimalnarayan
Newbie Poster
4 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
drjohn
Posting Pro
508 posts since Mar 2010
Reputation Points: 76
Solved Threads: 99
Skill Endorsements: 4
© 2013 DaniWeb® LLC
Page rendered in 0.0709 seconds
using 2.7MB