[FX.php List] FMP Checkbox

Leo R. Lundgren leo at finalresort.org
Wed Oct 31 05:03:57 MDT 2007


Sidenote: In my opinion "\n" is nicer than chr(10). Just so you know  
about the possibility I mean :)

-|

31 okt 2007 kl. 11.53 skrev Roger Price:

> I am struggling with a 'checkbox' problem!
>
> The web form passes the values of each box (if checked) and the  
> action page reconstructs them into the format that I believed FMP  
> required i.e. values separated by the line feed character. The  
> resulting construct looks a bit like this:
>
> $category = 'value1' . chr(10) . 'value2' . chr(10) . 'value3'
>
> When $category is posted to FMP the value in the array returned by   
> FMEdit() looks like: 'value1value2value3' but in the URL it appears  
> as ...&category=value1%0Avalue2%0Avalue3... and as %0A equates to  
> chr(10) or line feed it is doing what I intended. However the value  
> posted to FMP is: 'value1value2value3'
>
> I have obviously got something wrong although when I find a field  
> with a multiple values I can replace 'chr(10)' with something else.
>
> Please can anybody help with this?
>
> Roger
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20071031/4825d826/attachment.html


More information about the FX.php_List mailing list