In every book I have on HTML, it shows a database or other file associated with a form. I want to use form elements with JavaScript to control the web pages themselves, without the use of an external file. Can this be done?
MidiMagic
579
Nearly a Senior Poster
Recommended Answers
Jump to PostSure, but JavaScript is so limited in its capabilities why would you want to? There's a reason why forms are always handled server-side. You can't send email with JavaScript. And if someone has JavaScript turned off there goes your whole form.
Jump to PostYou can certainly use form controls as javascript controls; there's no point implementing drop-down lists in Javascript manually for example.
Things to consider are just that; you have to put form controls in forms to validate pages correctly; and if you put a submit button on a form, it'll …
All 6 Replies
stymiee
111
He's No Good To Me Dead
Team Colleague
MidiMagic
579
Nearly a Senior Poster
MattEvans
473
Veteran Poster
Team Colleague
Featured Poster
MidiMagic
579
Nearly a Senior Poster
MidiMagic
579
Nearly a Senior Poster
MidiMagic
579
Nearly a Senior Poster
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.