Hello,
I have a form that allows a user to submit notes in a textarea.
[HTML]<td><textarea name="Notes" value="" ROWS=3 COLS=35></textarea></td>[/HTML]
The notes get sent to the MySQL database correctly when I check out the database entries.
I have another form on the same page that pulls the notes field (along with some others) to display in another textarea. However, although the other fields pulled are displayed, the notes textarea remains empty. If I change the form's textarea to just text..it displays just the first word for each note stored in the database. Any ideas on how to get the full notes displayed?
Thanks.
The display form:
<form>...
<?
$i=0;
while ($i < $num) {
$TimeSheetID=my sql_result($res ult, $i, "TimeSheetI D");
$TaskDT=mysql_r esult($result,$ i,"TaskDT");
$UserName=mysql _result($result ,$i,"UserName") ;
$ClientName=mys ql_result($resu lt,$i,"LastName ");
$HoursWorked=my sql_result($res ult,$i,"HoursWo rked");
$Notes=mysql_re sult($result,$i ,"Notes");
?>
<tr>
<td><?php echo "<input name=TimeSheetI D type='text' value=$TimeShee tID id=TimeSheetID disabled='yes'/>";?></td>
<td><?php echo "<input name=TaskDT type='text' value=$TaskDT id=TaskDT disabled='yes'/>";?></td>
<td><?php echo "<input name=UserName type='text' value=$UserName id=UserName disabled='yes'/>";?></td>
<td><?php echo "<input name=ClientName type='text' value=$ClientNa me id=ClientName disabled='yes'/>";?></td>
<td><?php echo "<input name=HoursWorke d type='text' value=$HoursWor ked id=HoursWorked disabled='yes'/>";?></td>
<td><?php echo "<input name=Notes type='text' value=$Notes id=Notes disabled='yes'/>";?></td>
<td><?php echo "<input name=checkbox[] type='checkbox' value=$TimeShee tID id=checkbox[]>";?></td>
</tr>
<?php
$i++;
}
...</form>
I have a form that allows a user to submit notes in a textarea.
[HTML]<td><textarea name="Notes" value="" ROWS=3 COLS=35></textarea></td>[/HTML]
The notes get sent to the MySQL database correctly when I check out the database entries.
I have another form on the same page that pulls the notes field (along with some others) to display in another textarea. However, although the other fields pulled are displayed, the notes textarea remains empty. If I change the form's textarea to just text..it displays just the first word for each note stored in the database. Any ideas on how to get the full notes displayed?
Thanks.
The display form:
<form>...
<?
$i=0;
while ($i < $num) {
$TimeSheetID=my sql_result($res ult, $i, "TimeSheetI D");
$TaskDT=mysql_r esult($result,$ i,"TaskDT");
$UserName=mysql _result($result ,$i,"UserName") ;
$ClientName=mys ql_result($resu lt,$i,"LastName ");
$HoursWorked=my sql_result($res ult,$i,"HoursWo rked");
$Notes=mysql_re sult($result,$i ,"Notes");
?>
<tr>
<td><?php echo "<input name=TimeSheetI D type='text' value=$TimeShee tID id=TimeSheetID disabled='yes'/>";?></td>
<td><?php echo "<input name=TaskDT type='text' value=$TaskDT id=TaskDT disabled='yes'/>";?></td>
<td><?php echo "<input name=UserName type='text' value=$UserName id=UserName disabled='yes'/>";?></td>
<td><?php echo "<input name=ClientName type='text' value=$ClientNa me id=ClientName disabled='yes'/>";?></td>
<td><?php echo "<input name=HoursWorke d type='text' value=$HoursWor ked id=HoursWorked disabled='yes'/>";?></td>
<td><?php echo "<input name=Notes type='text' value=$Notes id=Notes disabled='yes'/>";?></td>
<td><?php echo "<input name=checkbox[] type='checkbox' value=$TimeShee tID id=checkbox[]>";?></td>
</tr>
<?php
$i++;
}
...</form>
Comment