Hi Todino
Welcome to the list.
Yes, it is far better to do validation on the server side because, with JS turned off, you don't get any form validation.
Regarding the button to do the job, an input type="submit" or input type="image" will do the job for you.
Remember:
1. When you submit an image button it's buttoname_x and buttonname_y that turn up on the server
2. You should add alt text to an image button for users with images turned off.
Cheers James
Todini, Gianfranco (TWIi London) wrote:
*****************************************************Hi, This is my first post on this list and I'd like to say that I find it really really useful and intersting!
I need to do some changes on a website to improve accessibility and one of the issue that I need to solve is the way the form are submitted, which is done by a javascript function called from the onclick event on an Anchor tag. And we know that this is wrong because if a user has got javascript disabled, he won't be able to submit the form.
I'm going to add an input type="image" button which will do the job but, where should I put now the form validation? I mean can I still use the onsubmit event on the input type image and use the same javascript function that there was before or is it everytime better to have the validation on the server-side to have a proper accessible form? Thanks everyone.
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************
