Pop-Up Window data to be added to mysql data. How?
Posted: Tue Jun 15, 2004 6:19 pm
Hi,
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...
I The table design for this data is I've created an autonumber date field, so everytime I write an entry, it gets timstamped. So I want an insert record on the pop-up window, and then make the query for this textarea refresh so it would display the new set of data...
Is this possible? Any suggestions?
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?