php task to :
1. display a text box that I can paste text into (multiple lines, up to 600 lines, each line either 4 or 5 characters ) - code the height of the text box and add vertical scroll.
2. display a 'Display' button
3. when Click on the 'Display' button, do the following :
create a table with 4 columns ( headings : code / long / short / size )
read the pasted text from the text box, one line at a time, and for each line :
find the table row that contains the 'code' with the same as the text box text
create a new row in the table
populate the 3 columns with the table data, with the 'short' value in a text box in the table cell, so that I can edit it.
the 'size' value must show the number of characters in the 'short' box.
at the end of the table, display an 'Update' button.
if the 'Update' button is clicked, then update the 'short' value in the table for each item that was modified.
Table fields, types and sizes ( relevant fields only )
code var(15) ( unique for each table row )