[FX.php List] Anyone know how to escape characters?

Chris Hansen chris at iViking.org
Mon May 16 18:08:38 MDT 2005


Although it's true that (1) the form method has no bearing on how data 
is submitted to FileMaker via FX.php, and (2) FX.php sends its data via 
GET by default; it is possible (and fairly simple) to tell FX to use 
POST to communicate with FileMaker instead.  Just add a line something 
like this to the query in question:

$MyQuery->FMPostQuery(true);

This will tell FX to use POST instead of GET to talk to FM.  (This 
might also solve the large field problem...)

Speaking of this, I'm presently working on the next release of FX.php.  
I have been wondering if I shouldn't change the default behavior so 
that FX.php uses POST by to communicate by FileMaker unless otherwise 
configured.  Does anyone see any reason that I shouldn't do this?  Any 
strong opinions one way or the other?

Best,

--Chris Hansen
   creator of FX.php
   "The best way from FileMaker to the Web."
   www.iViking.org

On May 16, 2005, at 4:42 PM, Kevin Futter wrote:

> On 17/5/05 5:45 AM, "Dave Strickler" <dstrickler at mailwise.com> wrote:
>
>> I am having trouble inserting data into a FM database, and I'm 90% 
>> sure its the data as when I try with test data it works just fine.
>>   
>>  The data that won't import has chars like "[" and "]" as well as 
>> "@", "%", "http://". One of the fields is text, and is about 1.5k 
>> long. While I don't get an error from FX, the record never appears in 
>> FM.
>>   
>>  Any clues on this? Perhaps I need to escape the data ?
>>   
>>  Thanks,
>>   
>>  Dave Strickler
>>  MailWise LLC
>>  617 267-0044 x810
>>  www.mailwise.com <http://www.mailwise.com>
>
>  Your large text field may in fact exceed the allowable limit on GET 
> requests. Correct me if I’m wrong, but I understood that FX always 
> uses GET when sending data to FM, no matter what method you specify in 
> your form.
>  --
>  Kevin Futter
>  Webmaster, St. Bernard's College
> http://www.sbc.melb.catholic.edu.au/
>  _______________________________________________
> 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