I've got a page with a textarea that shows data from a column in a table (mysql db). Therefore the text in that textarea is dynamic and shown through a PHP statement. Now I want the user to be able to add data to that existing data, without him/ her being able to modify the exisiting data shown there. I though to have a pop-up window display there when clicking on a button, the user could then enter the new info there, and when press submit, the new data would display together with the old data in the textarea. Then I submit the page and the data would be updated.
Here is the code for the textarea with the data...
Code: Select all
<textarea name="Notes" cols="80" rows="8" readonly="readonly" id="Notes" style="font-family:Lucida Console" style="font-size:small"><?php while ($row = mysql_fetch_assoc($NotesSearch)) { echo $rowї"nsTime"]." ---> ".$rowї"body"]."\n"; } ?></textarea>Is this possible? Any suggestions?