Hi,
I’m coding a form whose data is going to some emails addresses… not a server. i am using jquery for validation but what should be done if the user has turned off javascript
Thanks
Meera
You should never rely on JavaScript for something like this. It’s the wrong tool. You should rely on a script that will work in all cases—like PHP—and then, if you wish, enhance it with JS for those who have it on.
You can’t send forms directly to an email address - most browsers when given a form where the action points to an email address will just ignore the form and open the email program to create a new email to send to that address with whatever subject line and content that they type into their email program.
you probably gonna need some sort of server scripting for this. like folks above said javascript is not much reliable for validation.
if you use php you can post to the script processing it, where you can check the data input.
if you use .net its even easier, you can check input from the postback function for the submit button.