[FX.php List] Sending carriage returns within a string into FM field

Head Honcho headhoncho at customikesolutions.com
Wed Mar 2 15:24:14 MST 2011


Hi Bob,

try

$create->AddDBParam('item_type', nl2br($values) );

Hope this helps, somewhat.

Regards

Michael Ward
--
Head Honcho, CustoMike Solutions
Member, FileMaker Business Alliance & FileMaker Technical Network
FileMaker 7, 8, 9 & 10 Certified Developer
ph 0414 562 501
headhoncho at customikesolutions.com

On 03/03/2011, at 7:57 AM, Bob Patin wrote:

> Well, merchandise and taxexempt aren't variables, they're text strings...
> 
> So
> 
> $merchandise = "merchandise";
> $taxexempt = "taxexempt";
> $string = $merchandise."\r\n".$taxexempt;
> 
> is the same as
> 
> $string = "merchandise\r\ntaxexempt";
> 
> ... and he was right! I was pretty sure that I'd used \r\n in the past, and the difference was the double-quotes. 
> 
> I used this: "merchandise\r\ntaxexempt"
> 
> and it worked perfectly.
> 
> Thanks guys,
> 
> Bob Patin
> Longterm Solutions
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
> iChat: bobpatin
> FileMaker 9, 10 & 11 Certified Developer
> Member of FileMaker Business Alliance and FileMaker TechNet
> --
> Expert FileMaker Consulting 
> FileMaker Hosting for all versions of FileMaker
> PHP • Full email services • Free DNS hosting • Colocation • Consulting:
> 
> 
> 
> On Mar 2, 2011, at 2:44 PM, Anders Monsen wrote:
> 
>> I believe you need to wrap double quotes around a \r
>> 
>> $values = $merchandise . "\r" . $taxexempt;
>> 
>> $create->AddDBParam('item_type', $values );
>> 
> 
> _______________________________________________
> 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