DideC thanks for replying - I would have given more info but wasn't sure exactly what would be needed - but here goes.
------------------------------------------------------------------------------
This is what I have for the CGI script
----------------------------------------------------
#! c:/program files/easyphp1-8/cgi-bin/REBOL -cs
REBOL []
print "Content-type: text/html^/"
html: make string! 2000
emit: func [data] [repend html data]
read-cgi: func [
;Read CGI data. Return data as string or NONE.
/local data buffer
][
switch system/options/cgi/request-method [
"POST" [
data: make string! 1020
buffer: make string! 16380
while [positive? read-io system/ports/input buffer 16380][
append data buffer
clear buffer
]
]
"GET" [data: system/options/cgi/query-string]
]
data
]
emit [
<HTML><BODY BGCOLOR="#FFC080">
<H2> "Form:" </H2>
"Submitted: " now <BR>
"REBOL Version: " system/version <P>
<TABLE BORDER="1" CELLSPACING="0" CELLPADDING="5">
]
foreach [var value] decode-cgi read-cgi [
emit [<TR><TD> mold var </TD><TD> mold value </TD></TR>]
]
emit [</TABLE></BODY></HTML>]
print html
---------------------------------------------------------------------------------------
Here is the html page with the form:
---------------------------------------------------------------------------------------
<html><head><title>select from form</title>
<base target="main">
</head>
<body>
<FORM ACTION="
http://www.website-whatever.com/cgi-bin/test.cgi"
METHOD="POST">
<P>
<font>Select: <BR>
<select name="20" multiple size="15">
<option value="widget1">widget 1</option>
<option value="widget2">widget 2</option>
<option value="widget3">widget 3</option>
<option value="widget4">widget 4</option>
<option value="widget5">widget 5</option>
<option value="widget6">widget 6</option>
<option value="widget7">widget 7</option>
<option value="widget8">widget 8</option>
<option value="widget9">widget 9</option>
<option value="widget10">widget 10</option>
<p>
<INPUT TYPE="SUBMIT" NAME="submit" VALUE="Select">
-----------------------------------------------------------------------------------
here is the block data.r that I want to append to.
-----------------------------------------------------------------------------------
REBOL[]
widgets: [
"widget1"
"widget3"
"widget8"
]
------------------------------------------------------------------------------------
so basically I am trying to get the widget selected in the form to be appended to the end of the widgets (data.r) block, when someone clicks on the submit button.
Thanks for any help...