Page 1 of 1
Parameters to 'main' function
Posted: Tue May 09, 2000 1:55 pm
by Thunderstone
Any clue on how to pass parameters to function main (supposing I need to
know the HTML page from which I call the Texis script for a search)?
Thanks
Antonio
Parameters to 'main' function
Posted: Tue May 09, 2000 3:47 pm
by Thunderstone
Send them in as CGI query string variables
.../script/?param=value
Or as post variables from a form
<input type=hidden name=param value=value>
See
http://www.thunderstone.com/vortexman/node18.html
and
http://www.thunderstone.com/vortexman/node15.html
The parameter you're asking for is generally set by the web browser/server
already though. It's called HTTP_REFERER in many webservers.