Webmastersite.net
Register Log In

email required on contact form

Comments on email required on contact form

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Feb 10, 2011 - 3:23 AM:

Is there a way to make the email field on the contact forms required? I think this is the first time it has happened for me, but somebody didn't fill in their email address, so there is no way they can be contacted!



TIA

Jill
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 10, 2011 - 5:24 AM:

Well this could be a good spot to try out HTML 5's new "required" attribute:
 <td class="optionscolumn"><input type="text" name="email" size="20" value="{EMAIL}" required="required" /></td>


I see it pops up a nice little bubble in chrome, haven't checked which other browsers support it. I'll have WSN do that automatically for the normal required fields system for the next release (while still having the PHP-based incomplete messages too for older browsers).

As for a PHP method on the contact form, I'll look into that.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.