Hi,
I am looking for get the text of a dropdown in the email. Text not value.
I have seem this.
It works fine but my dropdown is dynamicly generated from a table of the database (contact detail ) as id=>name
I know that a dropdown with value = text will solve the problem but i need id as value, because i use it to get other data by ajax.
Any help
Regards
I am looking for get the text of a dropdown in the email. Text not value.
I have seem this.
<?php
$color_array = array(
1 => 'green',
2 => 'blue',
3 => 'red',
4 => 'white'
);
$form->data['color_name'] = $color_array[$form->data['color']];
?>
It works fine but my dropdown is dynamicly generated from a table of the database (contact detail ) as id=>name
I know that a dropdown with value = text will solve the problem but i need id as value, because i use it to get other data by ajax.
Any help
Regards