[FX.php List] Update text area field
Shawn DeArmond
sgdearmond at ucdavis.edu
Fri May 12 09:41:31 MDT 2006
You have answered your own question. You need that extra [0] at the
end of your first $searchData['Description']
<textarea name="Description" cols="15" rows="3"><? echo $searchData
['Description'][0] ?></textarea>
Shawn
On May 12, 2006, at 8:23 AM, Jane Chinn wrote:
> Hi All,
>
> Can someone point me in the right direction with the correct code
> on an edit page to update a text area field. This is what I have
> but what ever I type in as an edit appears as "Array".
>
>
> Edit code before <head>
>
> $recid=$_GET[recid];
>
> $search=new FX($serverIP,$portNumber);
> $search->SetDBData('Art101.fp7','Layout1');
> $search->AddDBParam('-recid',$recid);
> $searchResult=$search->FMFind();
> foreach($searchResult['data'] as $key=>$searchData);
>
>
> In the body:
>
> <textarea name="Description" cols="15" rows="3"><? echo $searchData
> ['Description'] ?></textarea>
>
> I have the same field code as a text input as follows and it works
> when submitting an update:
>
> <input type="text" name="Description" value="<?php echo $searchData
> ['Description'][0]; ?>">
>
> Thanks,
> Jane
> _______________________________________________
> 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