Jump to content

array('a','a')???? what could be the meaning? the keys and values are same?


devilincarnated

Recommended Posts

'empstatus'=>array('select','empstatus',array(array('','Choose One'), array('Associate','Associate'),

array('Government Employee','Government Employee'),

array('Partner','Partner'),

array('Solo Practice','Solo Practice'),

array('Independent Contractor','Independent Contractor'),

array('Law Student','Law Student'),

array('Other','Other')), array('class'=>"fillin2", 'style'=>"width:200px;"),'empstatus'),

 

 

 

could anyone explain me the above code? it was posted for a registration form and this is the employee status...

Judging from the content; select,choose one, and the width=200 I would say its used to build a select box. In each array you have 0=>value,1=>option, or the other way. Not a very sensible way but I've seen cludgier.

 

 

HTH

Teamatomic

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.