[FX.php List] FMP Checkbox

Bob Patin bob at patin.com
Wed Oct 31 07:59:12 MDT 2007


When I want to put checkbox values together for storage in a FileMaker  
field, I concatenate the values using this:

$field = $value1."\r\n".$value2;

Bob Patin
Longterm Solutions
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com
Member of FileMaker Business Alliance and FileMaker TechNet

   CONTACT US VIA INSTANT MESSAGING:
      AIM or iChat: longterm1954
      Yahoo: longterm_solutions
      MSN: tech at longtermsolutions.com
      ICQ: 159333060

--------------------------
Contact us for FileMaker hosting for all versions of FileMaker
PHP • CDML • Full email services • Free DNS hosting • Colocation •  
Consulting


On Oct 31, 2007, at 5:53 AM, Roger Price wrote:

> 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/4fe8611e/attachment.html


More information about the FX.php_List mailing list