HtmlInput


HtmlInput type$, url$, data$

This command is the most important command in the HTML Browser mode. Like a regular input statement, this command stops and waits for input from the HTML screen. HtmlBrowser mode must be On for this command to work. This command returns the following three string variables.


type$

This string indicates the type of input returned from the HTML screen.

It can have the following values:

"URL" - A link to a URL was clicked and intercepted.

"GET" - The user clicked on a GET type FORM on the HTML page.

"POST" - The user clicked on a POST type FORM on the HTML page.

"DOWNLOAD" - A download link was intercepted and this is the download info.

"BACK" - The back button was pressed and intercepted. The url$ variable will contain the prior page URL. If url$ is empty "" then you are already on the top page.


url$

This string returns the URL associated with the intercepted user action.


data$

This string returns the data associated with the intercepted user action.

When type$ = "URL", this variable will contain the URL of the link the user just pressed.

When type$ = "GET", this variable will contain a delimited string containing the data from the FORM fields.

When type$ = "POST", this variable will contain a delimited string containing the data from the FORM fields.

When type$ = "DOWNLOAD" this variable may contain the file descriptor if header information was sent.

When type$ = "BACK", this variable will contain the URL of the prior screen.


When execution is paused waiting on a HtmlInput command, the back button is always intercepted. The user will not be able to press back and leave the program unless you program it that way. The user may still exit your program by pressing the menu key and exiting.

You can find example programs that demonstrate the use of this command on the forum under Programs->Demos.



HtmlBrowser On|Off


HtmlLoadData


HtmlLoadFile


HtmlLoadUrl


HtmlEscape$()


HtmlUnescape$()






Become a Patron