php and filepro apostrophe

Richard D. Williams richard at appgrp.net
Fri Jun 2 14:32:01 PDT 2006


Gentleman,

I found the solution.

First of all I must use addslashes to use php to get the data out to 
filepro.
I really don't care if the data sits in filepro as D\'Alton.  I can 
probably figure a way around that.

But, when the data comes back to the web page via filepro export and php 
read of the text file, I can use this:

$rdw1 = htmlspecialchars($requestor_name);$requestor_name = $rdw1;$rdw1 
= '';

Once this is applied I can then successfully use the:
<input type=\"text\" name=\"requestor_name\" value=\"$requestor_name\">

Thanks for your help,

Richard



Bill Randall wrote:

> ----- Original Message ----- From: "Kenneth Brody" <kenbrody at bestweb.net>
> To: "Bill Randall" <wrandall at fptech.com>
> Cc: "filePro Mailing List" <filepro-list at lists.celestial.com>
> Sent: Friday, June 02, 2006 12:09 PM
> Subject: Re: php and filepro apostrophe
>
>
>> Quoting Bill Randall (Fri, 2 Jun 2006 11:56:37 -0400):
>> [...]
>>
>>> I don't know if PHP uses the same syntax as XML but in some XML coding
>>> that I had to do I had to strip out certain characters from the text in
>>> order for it to be rendered properly in the XML page.
>>>
>> [... snip code with instr+mid to replace "special" characters ...]
>>
>> You do realize that, except for the apostrophe, you could have done
>> the same thing with a simple TOHTML() call?
>>
>
> Figures.  Since Richard needed the apostrophe to be handled my process 
> will at least show him how to do that one.
>
> Bill
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
>
>



More information about the Filepro-list mailing list