What is Difference between these 2 in Return Array ...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hbnmgr
Forum Newbie
Posts: 13
Joined: Mon Mar 07, 2005 8:22 pm

What is Difference between these 2 in Return Array ...

Post by hbnmgr »

Can somebody tell me what is the difference between these two in Return Array;

Code: Select all

'Aff_signup_name' => "1",
                'Aff_signup_name_mandatory' => 'true',

                'Aff_signup_mbrinfo1' => $data['signup_mbrinfo1'],
                'Aff_signup_mbrinfo1_mandatory' => $data['signup_mbrinfo1_mandatory'],

In the PHP page I have mbrinfo1, if left empty, comes back CANNOT BE BLANK !
What is the difference in the two statements above, and How can I make a field Not Mandatory?


Thanks!
SRR/arr
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I don't see a way for us to give you an answer if we don't know how the code that checks for "mandatory" works.
Post Reply