WebmasterSite.net

registration required fields
if "isbreeder" set to yes

Version: 3.2.6
URL:

PrintPrint
locked


registration required fields
babrees
Expert
Avatar

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

Total Topics: 392
Total Posts: 1287
quote post #1
Posted 10/05/05 - 2: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
Avatar

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

Total Topics: 65
Total Posts: 7614
quote post #2
Posted 10/05/05 - 11:00 AM:

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
Avatar

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

Total Topics: 392
Total Posts: 1287
quote post #3
Posted 10/05/05 - 7:03 PM:

Thanks Paul
 
Search thread for
Download thread as
locked


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