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

Gjermund Gusland Thorsen ggt667 at gmail.com
Wed May 2 01:33:52 MDT 2007


change name of variable to: Language_you_translate_from[]

add_result_add->AddDBParam( 'whateverFieldYouWouldLikeToFill',
implode( "\n", $Language_you_translate_from ) );

ggt667

On 5/2/07, Larry Schultz <larry at macedge.net> wrote:
> 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();
>
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>


More information about the FX.php_List mailing list