Consultor Eletrônico



Kbase P22476: WebSpeed HTML FORM component definition.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   6/30/2009
Status: Verified

GOAL:

WebSpeed HTML FORM component definition.

GOAL:

HTML Form

FACT(s) (Environment):

All Supported Operating Systems
OpenEdge 10.x
WebSpeed 3.x
WebSpeed 2.x

FIX:

This is the basics of the HTML form;

Syntax;
<FORM METHOD="POST" ACTION="page.html">
Form elements and other HTML
</FORM>


ACTION specifies the action URI for the form. This URI will almost always point to a Webspeed HTML page or a .p procedure to decode the form results; but it could, for example, be a mailto.

METHOD selects an HTTP method of accessing the action URI. There are two methods, GET (the default) and POST. Generally speaking, you use GET for only the simplest forms, or when you want the user to be able to bookmark the query or use it as a link - it will work just as if the user had filled in the form as before and submitted it. Use POST for forms with a lot of fields (GET might not be able to pass all the data) and for scripts that are supposed to change something on the server - you normally don't want anyone to do that from a bookmark or link.

METHOD=GET Information from a form using the GET method is appended onto the end of the action URI being requested. Your program will receive the encoded form input in the environment variable QUERY_STRING.

METHOD=POST This method transmits all form input information immediately after the requested URI. Your program will receive the encoded form input on stdin. The server will NOT send you an EOF on the end of the data, instead you should use the environment variable CONTENT_LENGTH to determine how much data you should read from stdin.