Equinox Online Help - Language Reference - A to Z

Home

WebParameter

Applies to
SyntaxWebParameter “[input name]”, [variable name]
Action[Statement] Assigns the value passed by a browser to a variable.
ScopeUsed in method language on an ESP page.
Notes

[input name] is the name assigned to the input received in an HTML form. [variable name] is the variable used to contain the value of the input

CategoryWeb Server
See Also WebBaseDirectory, WebCurrentPage, WebGetCookies, WebGetHeader, WebOutput, WebOutputFile, WebPostData, WebRedirect, WebSetCookie, WebSetHeader
Example

This example shows how data entered by a user in the index.htm page is stored in a variable 'username' and the action of the form is to post this information to another page 'LoggedInESP'. The second page shows how the method language statement takes this variable 'username' and assigns it's value to another variable called 'name' that can be used as any other variable in Method language.

NOTE: Remember to declare your variables in an ESP page before any HTML code.

[Index.htm]

<html><head>
<title>This is the Index page for the IOS application</title></head>

<body>
<font face="Arial">Please enter your company name:<br><br>
<form method="POST" action="/loggedInESP">
<input name="username" type="text"><br/><br/>
<input type="submit" value="Log In" name="login">
</form>
</font>
</body>
</html>

[LoggedInESP]

<<%
string name
%>>

. . . . . . .

<<%
webparameter "username", name
%>>