Hi -
I'm somewhat of a newbie with this, but I am wondering if anyone can help me out here. I am modifying an existing PHP file/SQL database and am trying to add drop down selections that will simply post to the SQL database in the proper column as text (as if the user typed it in).
Here is a sample of the code I am working with, and as a text field it works properly and adds the value to the database:
array(
'type'=>'text',
'label'=>''.__("State").''.$rfs,
'name'=>'state',
'value'=>$_SESSION["basic"]['state'],
'id'=>'state',
'class'=> $_SESSION["class"]["state"]
),
Now if I make it into a selection as follows, I get an empty drop down selection but can't figure out how to populate the drop down with values....
array(
'type'=>'select',
'label'=>''.__("State").''.$rfs,
'name'=>'state',
'value'=>$_SESSION["basic"]['state'],
'id'=>'state',
'class'=> $_SESSION["class"]["state"]
),
.$rfs makes it a required field, which I do want with this. The values do not need to be from the database, they just need to be text values that when selected, are added to the database. If you need addtional information to help I can post it. I understand I'm a newbie here and way out of my league (strong design background, attempting to code stuff...), but I am very good at following directions and have made many successful modifications to the code already! Thanks!