<## -------SYSTEM CONFIGURATION -------------------------------------##> <## Please change configuration file names to match names and dirs---##> <## as they are used on your system.---------------------------------##> <## Note that Page Title is defined above ----------------------##> <## the cgi dir for our system ##> <## the name of this applet ##> <## the name of htmlscript on our system ##> <## the directory where gifs are stored (NOT your HTS dir)##> <## this line builds the URL for this applet. ##> <## Title of this file ##> <## ----END OF SYSTEM CONFIGURATION ---------------------------------##> <## All data is passed with URL--------------------------------------##> <##And is made available royalty-free for use by members of hts-users##> View &[title]

&[title]
SHOWARGS.hts was written in Htmlscript 4GL by Alan Runfeldt. Htmlscript is a cgi-extension to HTML. Htmlscript code is supported by htmlscript.exe a server-based script processor developed by Htmlscript Corp.
This applet does no file reading or writing. It is designed to illustrate how arguments can be passed on the command line.
Add your own arguments on the command line above:
like this:

&[myurl]+this+is+a+test

Then re-load the applet - with your arguments attached to the url - and watch this table change.

<## Display args using simple variable names. ##> <## Now, display args using concatenated values of *args* with varnames for args 3-5 - just to illustrate that variable names can be created dynamically. ##>
user's ip address =
nargs =
arg1 =
arg2 =
arg&[args] =
arg&[args] =
arg&[args] =
(Try adding up to five parameters as shown above, then reload the program.)

Below is a list of default environment variables we can also read:


varname                 = they can be displayed using <eval tag
			  or displayed using macro syntax


Htmlscript-specific System Variables:

server_name		=  
cgidir			=  
htsexecutable		=  
myname			=  
Htmlscript version is   =  


Standard CGI environment variables:

http_host		=  
gateway_interface 	=  
content_type		=  
content_length		=  
Query_string		=  
request_method		=  
script_name		=  
server_port		=  
server_protocol		=  
server_software		=  

User information

referer_url		=  
remote_ident		=  
remote_addr		=  
remote_user		=  
http_user_agent		= 


View/Save Program Source Code

Return to Home Page.