Equinox Online Help - Language Reference - A to Z
WebParameter |
|
---|---|
Applies to | |
Syntax | WebParameter “[input name]”, [variable name] |
Action | [Statement] Assigns the value passed by a browser to a variable. |
Scope | Used 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 |
Category | Web 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> [LoggedInESP] <<% |