[FX.php List] Update text area field

Jane Chinn Jane.Chinn at cwu.EDU
Fri May 12 10:58:09 MDT 2006


Shawn,

This will display data from the field in the DB but it won't allow me  
to update:

<textarea name="Description" cols="15" rows="3"><? echo $searchData 
['Description'][0]; ?></textarea>

The text input type field does allow an update though as do all the  
other input fields in the update form.
>>  <input type="text" name="Description" value="<?php echo  
>> $searchData['Description'][0]; ?

Best Wishes,
Jane


On May 12, 2006, at 8:41 AM, Shawn DeArmond wrote:

> 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
>
> _______________________________________________
> 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