Two Laptop Bag
The moose likes HTML, CSS and JavaScript and the fly likes HTML & Javascript forms & forms validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "HTML & Javascript forms & forms validation" Watch "HTML & Javascript forms & forms validation" New topic

HTML & Javascript forms & forms validation

Angela D'souza
Ranch Hand

Joined: Jan 16, 2002
Posts: 469
I want to create user registration form with fields like Name, Address, Telephone number, Email, How did you hear about us. When user submit forms, data should be sent to my email address. So i can get all form details in my email. I also want Email and Telephone mandatory fields.

Is there any open source javascript & HTML forms code for all above?

Thank you,
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
You are aware that you will need server-side code to handle this? Just asking because you're posting to the HTML/JS forum.
[ September 07, 2005: Message edited by: Ulf Dittmer ]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You could use a mailto in the action, but this requires that they have an email client on their machine such as Outlook. It opens it up to send it out. If they do not have one installed then they can not use the form. You would need a server side language to do this properly.

I agree. Here's the link:
subject: HTML & Javascript forms & forms validation
It's not a secret anymore!