Discussion on:

1
Comments

Join the conversation!

Follow via:
RSS
Email Alert
1 Vote
+ -
Old?
Craig_ Updated - 21st Jun 2011
I like your tutorial, it's easy to understand but to me, 30+ lines of code for a simple form with validation is to much, no? I understand you're trying to help people learn how to use Dreamweaver but at the same time, you're teaching old code.

Why aren't you using HTML5?

I created a simular form, with validation in no time at all.

<form action="" method="get">
<p><label for="NameField">Name:*</label> <input type="text" name="NameField" id="NameField" placeholder="Your Name" required /></p>
<p><label for="EmailAddressField">Email Address:*</label> <input type="email" name="EmailAddressField" id="EmailAddressField" placeholder="Email@Address" required /></p>
<p><label for="CommentField"><textarea name="CommentField" id="CommentField" cols="50" rows="8" placeholder="Your Comments"></textarea></label>
<p><input type="submit" name="SubmitButton" /></p>
</form>

I know some browsers don't support HTML5, but with a little jQuery you can get around this.
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.