Forum Moderators: open
Huh? Here's an example.
Say that Mary wants a cone, and that only comes with a single scoop. So if she picks 2 flavors, I want her to revise her selections and only pick one flavor - prior to sending the order off to the cart.
But Mark wants the other cone, and I can give him 3 scoops. Still, Mark wants to order 4 scoops, or maybe even 2 scoops. I need to make sure he orders just the right amount, no more or no less.
As I write this I suspect there is not an HTML solution, but instead I'll have to learn some JavaScript.
Comments or suggestions?
Thanks
Then, the page would come back with the problems found.
I use both methods, depending on the severity of the problem.
To check for duplicate IDs I would do that server side. To see if a phone number has all 10 digits, I would do that client side.
I know of one specific one called 'order form validation' or something like that. I can 'sticky' the website it comes from if you want.
Hope I understood what you wanted.
A) Javascript is easily disabled
B) Server-side validation is generally more reliable as it is not as subject to user-error as is Javascript
A combination of both, of course, makes for a better user experience since Javascript validation doesn't require the page to reload. Multiple problems can be fixed BEFORE submission. Just don't put all your eggs in one basket.