[REBOL] Imbedding rebol code in a dialect
From: tim::johnsons-web::com at: 24-Sep-2002 16:44
Hello All:
<wink>I'm feeling guilty about buggin Andrew at home</wink>,
so am baring my ignorance of dialecting to the whole world here..
I am working with Andrew's 'ML dialect, and have the following
code segment which extracts data from a cgi post, and saves it
in hidden fields. Code below:
print ml compose/deep[
form/action/method (cgl[get path thru "process"]) "POST"[
(
foreach field required-fields[
value: cgl[get value field]
ml[input/type/name/value "hidden" (field) (value)]
]
)
]
] ;end 'ML
; Where 'required-fields is a block of values, matches are found on
; all values, but only the last match is being shown in the
; resulting hidden field
required-fields: ["First Name" "Last Name" "Street Address" "State/Province" "Country"
"Phone" "E-mail"
Password
"Login" "Subscription Type" "City" "Zip/Postal Code"]
My guess is that I am not using 'compose correctly or my parenthesis are
incorrectly placed. Any other ideas?
TIA
--
Tim Johnson <[tim--johnsons-web--com]>
http://www.alaska-internet-solutions.com
http://www.johnsons-web.com