[FX.php List] Text encoding problem

Bob Patin bob at patin.com
Sun Oct 15 09:05:31 MDT 2006


It's a fairly simple form; here's the code for editing the record:

<?php
include_once('FX/server_data.php');
include_once('FX/FX.php');

$title = $_POST['title'];
$teaser = $_POST['teaser'];
$newsitem = nl2br(stripslashes($_POST['newsitem']));
$id = $_POST['id'];

$itin=new FX($serverIP,$webCompanionPort);
$itin->SetDBData($dbname,'news');
$itin->SetDBPassword('<pw>','<username>');
$itin->AddDBParam('-recid',$id);
$itin->AddDBParam('title',$title);
$itin->AddDBParam('teaser',$teaser);
$itin->AddDBParam('newsitem',$newsitem);
$itinResult=$itin->FMEdit();
include_once('news.php');
?>

As you can see, I tried to strip out anything that might cause  
trouble, in the line where $newsitem is retrieved from the POST form.

Any thoughts would be appreciated...

Bob Patin
Longterm Solutions
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com

   CONTACT US VIA INSTANT MESSAGING:
      AIM or iChat: longterm1954
      Yahoo: longterm_solutions
      MSN: tech at longtermsolutions.com
      ICQ: 159333060


On Oct 15, 2006, at 1:16 AM, Erik Andreas Cayré wrote:

> Are you doing any processing on the data from the form, before  
> storing in FM?
>
> Can you show us the html form and the FX call to FM?
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20061015/495ff962/attachment-0001.html


More information about the FX.php_List mailing list