Webmastersite.net
Register Log In

registration required fields
if "isbreeder" set to yes

Comments on registration required fields

babrees
Expert

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

Total Topics: 391
Total Comments: 1303
babrees
Posted Oct 05, 2005 - 5:14 AM:

I have extra fields in the registration template and I need to make them required IF another field (isbreeder) is yes. Can I do this? If yes, how?
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 05, 2005 - 2:00 PM:

There may be some javascript from dynamicdrive or the like that could refuse a form submission based on that. To do it the regular WSN way you'd have to modify the register.php though to put in a check along the lines of
if ($_POST['isbreeder'] == 'yes' && ($extrafield == '' || $otherextrafield == '')) $incomplete = true;
somewhere around the rest of the incomplete checking.
babrees
Expert

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

Total Topics: 391
Total Comments: 1303
babrees
Posted Oct 05, 2005 - 10:03 PM:

Thanks Paul
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.