[FX.php List] Pulling back an apostrophe

Dale Bengston dbengston at tds.net
Mon Jun 14 11:10:46 MDT 2010


Hi Trish,

Take a look at the PHP manual entries for addslashes() and stripslashes(). These functions add and remove bacwards slashes \ to escape various characters - including quotes - in text fields.

http://us3.php.net/manual/en/function.addslashes.php
http://us3.php.net/manual/en/function.stripslashes.php

Hope this helps,
Dale



On Jun 14, 2010, at 9:10 AM, VanBuskirk, Patricia wrote:

> We have a directory setup in FMP9, using FX.php to allow users to
> add/edit/remove listings.  The issue we've recently come up against is
> bringing a line back to the webpage from FM that has an apostrophe in
> it.  I have a function that changes special characters before submitting
> them to FM, and the line shows up perfectly there, but when it shows
> online in the list, the apostrophe and everything after it is missing.
> 
> Any ideas on how I fix this?
> 
> As usual, I appreciate any/all advice!
> 
> Trish
> _______________________________________________
> 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