Grab and Set users 'email' in addition to 'fullname' from Options select

3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 12, 2013   (RSS)

By nmsinc - March 9, 2013

Ref: From the Options code below I can choose a user from the drop down - I also need to set a value for the suers email when I choose a user. How can that be accomplished?

-------------------------------------------------------------------------------------------

<select id="user_drop" name="user_name">

<option value = "<?php echo $table4Record['num'] ?>"><?php echo $table4Record['fullname'] ?></option>

<?php foreach ($accountsRecords as $user): ?>

<?php if ($user['member_company_accounts'] == $table3Record['num'] AND $user['user_type'] == "Adjuster" AND !$user['disabled'] OR $user['member_company_accounts'] == $table3Record['num'] AND $user['user_type'] == "Dispatcher/Adjuster" AND !$user['disabled']): ?>

<option value = "<?php echo $user['num'];?>"><?php echo $user['fullname'];?></option>

<?php endforeach ?>

</select>

----------------------------------------------------------------------------------------

Thanks - nmsinc

nmsinc

By nmsinc - March 12, 2013

Thanks Greg, I used the first option and it worked great!

nmsinc