[FX.php List] Displaying text as entered in FileMaker field

Bob Patin bob at patin.com
Sun Mar 19 17:15:55 MST 2006


Thanks Marisa, that's the one I had used before; I couldn't remember  
it to save my life...

This time I'll keep the email!

Bob


On Mar 19, 2006, at 6:04 PM, Marisa Smith wrote:

> You can also use
>
> echo nl2br($variablename);
>
> I don't think one really is any better than the other, but this one  
> is slightly shorter.
>
> Marisa
>
> ---------------------------------------------------------------------
> Marisa Smith, President
> DataSmith Consulting, LLC
> 9206 Huron River Drive
> Dexter, MI 48130
> Phone & Fax: (734) 426-8077
> http://www.datasmithconsulting.net
> Filemaker Solutions Alliance Associate Member
>
> On Mar 19, 2006, at 3:32 PM, Andy Gaunt wrote:
>
>> Bob,
>>
>> Try using str_replace to replace the line breaks with <br />  
>> characters.
>>
>> echo str_replace("\n","<br>",$variablename);
>>
>>
>> Andy Gaunt
>> T: 407.810.4722
>> andy at fmpug.com
>> http://www.fmpug.com
>>
>> Recipient of FileMaker's 2005 "Mad Dog" Public Relations Award
>>
>> For chapter locations, dates & times please visit the website at
>> http://www.fmpug.com If you can make it to a meeting, please RSVP at
>> http://www.fmpug.com/rsvp.php
>>
>>
>> -----Original Message-----
>> From: fx.php_list-bounces at mail.iviking.org
>> [mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Bob Patin
>> Sent: Sunday, March 19, 2006 3:26 PM
>> To: FX.php Discussion List
>> Subject: [FX.php List] Displaying text as entered in FileMaker field
>>
>> I'm trying to display articles from a converted FM 6 file; I know
>> that I read an answer to this question before. Without diving into
>> Smarty, which I've seen suggested here, isn't there a way to tell my
>> PHP page to display the text with the proper carriage returns, etc.?
>>
>> Thanks,
>>
>> Bob Patin
>> Longterm Solutions
>> bob at longtermsolutions.com
>> 615-333-6858
>> http://www.longtermsolutions.com
>>
>>    CONTACT US VIA SKYPE:
>>       USERNAME: longtermsolutions
>>
>>    CONTACT US VIA INSTANT MESSAGING:
>>       AIM or iChat: longterm1954
>>       Yahoo: longterm_solutions
>>       MSN: bob at patin.com
>>       ICQ: 159333060
>>
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>
> _______________________________________________
> 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/20060319/0d093fa7/attachment.html


More information about the FX.php_List mailing list