Welcome to Geeklog, Anonymous Sunday, December 29 2024 @ 01:09 am EST

Geeklog Forums

Required field in custom registration


maccels

Anonymous
I managed to add a custom field in my user registration form. The only part I can't seem to figure out is how to implement a required field. Where should I put the check if a certain custom field is not filled in? And how do I throw an error message?

Thanks.
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
You will need to use Javascript if you want to have the validation done by the client. Otherwise, you will need to add logic (PHP Code) in your script where the form posts to and them validate. It's usually a lot easier to add some basic javascript.

Some links to JS Validation Libraries are:
http://www.peterbailey.net/fValidate/
http://jsval.emedia-office.com/
http://www.jeffemminger.com/index.php?action=library&item=jvalx



Geeklog components by PortalParts -- www.portalparts.com
 Quote

All times are EST. The time is now 01:09 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content