I have a text field in my mysql database that is used for notes.
Instead of having the current text echoed in the text area of the form every time is is to be added to, I would like to have the current text showing read only, then a blank text area to add any new notes to.
So I am trying to get a script that will ad the inc the current data from the text field and then add after this the new data, then use the string of the combined data for my form value.
Something like this
//Take it that I have called the database data.
<textarea cols="75" rows="20" id="comments2" name="comments2"></textarea>
$comments = "db text field"; // current data from the textarea in the db
$comments2 = ($_POST['x_comments2']); //data from the textarea on the form
$x_comments = $comments . $comments2; //the joined data to be input into the db
<input name="x_comments2" type="hidden" value="<?php echo $x_comments; ?>">
//The form is to ad data into the db from the hidden field x_comments2
I am able to retain the exsisting data (no supprize) but can I hell as like get any new text input from the textarea form??
I have also googled and googled again, tried and tried again. A little stuck.
Help please.