Hello, I am developing a website for which I am designing a signup form, the problem is a user fills the form and miss a field when they go back to enter that field it cleans up all the remainig field and they have to fill the whole form again. Please help me how can I achieve this.
architact
25
Junior Poster
Recommended Answers
Jump to PostTheir are various way to get this done...
1) User java script to validate the form .. this is for client side validation
2) use Ajax to validate the form and tell user what he has missed on that form this is for server side validation
3) Use sessions …
Jump to PostThe suggestions einfoway made are correct, however there are other factors to take into account, for example some people do not have JavaScript enabled so the Javascript validation and AJAX will not work for this so it would not be a good idea to rely on this.
It would …
Jump to PostIf the validation is as simple as 'is the field empty' then it would be fairly simple to get JavaScript to validate them with a single function, for example,
JavaScript code:<language="text/javascript"> function CheckField(field) { if (field.value == "") { alert( "Field " + field.name + " …
All 9 Replies
einfoway
1
Junior Poster
Will Gresham
81
Master Poster
architact
25
Junior Poster
Will Gresham
81
Master Poster
einfoway
1
Junior Poster
R0bb0b
344
Posting Shark
R0bb0b
344
Posting Shark
R0bb0b
344
Posting Shark
R0bb0b
344
Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.