[FX.php List] How do I pass multi select items to FM

Larry Schultz larry at macedge.net
Tue May 1 19:20:53 MDT 2007


I'm trying to use a multi select value list.
I do get the multi select list, and I AM able to select multiple  
items. The problem is I don't know how to pass them on to FM through  
the results page.
Any help is appreciated.

Add:
<select multiple="true" name="Language_you_translate_from">
	<?php
		foreach(fmsValueListItems 
($PeritusFX,'NewTranslatorOnlineProfile_Web','LanguageSingle') as  
$list_item) {
			 if($list_item == "") {
				echo "<option value=\"{$list_item}\" selected=\"selected\"> 
{$list_item}</option>\n";
			 } else {
				echo "<option value=\"{$list_item}\">{$list_item}</option>\n";
			  }
			}
	?>
</select>


Post:
<?php
$add_result_add = clone($PeritusFX);
$add_result_add->layout = 'NewTranslatorOnlineProfile_Web';
$add_result_fields = array('Language_you_translate_from'=>$_POST 
['Language_you_translate_from'],
);
foreach($add_result_fields as $key=>$value) {
     $add_result_add->AddDBParam($key,$value);
}

$add_result_result = $add_result_add->FMNew();





More information about the FX.php_List mailing list