User guide
eWON 500-2001-4001-4002 User Guide - User defined Web site
eWON 500®2001®4001®4002® Version 4_3_0 - User Guide - 10/5/05 - ©ACT'L sa - Page 186
10.3.2.4 Using Web context variables with FORMS
The Web context variables provide the easiest way to use FORM fields when the FORM is posted.
As described below, there is a special form call ExeScriptForm that allows to request execution of a script command.
Example:
• When the form is posted, the "goto UseForm" request is posted in the BASIC queue.
• If other fields are added in this form, there content can be accessed using Web context variables.
Example:
And the BASIC contains the following code at UseForm label:
Warning:
That Web context variable must be lowercase.
<form method="POST" action="/rcgi.bin/ExeScriptForm">
<input type="hidden" name="Command" value="goto UseForm">
</form>
<form method="POST" action="/rcgi.bin/ExeScriptForm">
<input type="text" name="edit1" size="20">
<input type="hidden" name="Command" value="goto UseForm">
</form>
UseForm:
REM save Edit1 parameter
A$ = edit1!
PRINT "Edit1 value entered was:";A$
END