Hi,

you cant do this in javascript as if you try adn write to the document using any kind of document write format, itll throw a method operator error.

Hees the one I wrote for a project. uses ASP and simple VBscript.

HTML Code:
<SELECT id="Tools" style="WIDTH: 116px;" name="tools">
<option value="" SELECTED>Select and Add</option>
<option value="None">Nothing</option>
<OPTION value="Microwave">Microwave</OPTION>
<option value="Toaster">Toaster Oven</option>
<option value="Coffee">Coffee Pot</option>
<option value="Skillett">Electric Skillet</option>
<option value="Demo Table">Demo Table</option>
<option value="Military Access">Military Access</option></SELECT>

<input name="ADD_T" type="submit" value="Add>>" />
<TEXTAREA id="Tools" style="WIDTH: 176px; HEIGHT: 45px" name="ToolBox" rows="2" cols="19"><% call ToolsDisplay() %></TEXTAREA>

so youve got a select box, submit button and text box to stor the info

now heres the function to write the info.

VB Code:
  1. session("Tools") = Request.Form("ToolBox") // textarea form element
  2.  
  3. private function ToolsDisplay()
  4.    
  5. // if the form is submitted and button is not pressed, code wwrites the //session contents into the textarea, errorhandling  code for form
  6. // kickbacks
  7. if (Request.form("ADD_T") = "") then
  8. with response
  9. .write Session.contents("Tools")
  10. end with
  11. end if
  12.  
  13.  
  14. // writes the current selection of the select box
  15. if (Request.Form("ADD_T") <> "") then
  16. with response
  17. .write Request.Form("tools")
  18. end with
  19. end if
  20.  
  21. end function

This code will write th ecurent selection of the select box into the textarea
when pressed, adn when other parts of the form are working, suhch as
a primary submit button, the textarea will show the current session contents, which is collected form the text are when a value is written into the textare.

Therefore this creates a loop where if a person selects 1 set of data, then goes back and select another
the data will be collated rather than overritten.

Its a nice bit of code, althouh a tad convaluted, but neccesssary for optimal performance.

Hope it helps

Kai