I would like to create an html form on my index.cgi.
For example, I would like to have a search on my site and use the term searched for to build my page.
Do I just create the form html, and have it post to mysite.com/index.cgi?search=xyz ?
What do I need to do inside of index.cgi in order to be able to receive a search?
This is not a search engine for searching the content on my site.
I will take the search term and build the page once I know what they are searching for.
I see this in Web.lsp:
Code: Select all
Web:get
syntax: (Web:get str-key)
Returns the value of str-key in the query string or nil if not present. If str-key is not provided, returns an association list of all GET values.
Web:post
syntax: (Web:post str-key)
Returns the value of str-key in the client-submitted POST data or nil if not present. If str-key is not provided, returns an association list of all POST values.
If I get my form to submit to xyz.com/index.cgi?search=test then Web:get or Web:post will be able to interpret "test" and be able to doing things with it inside index.cgi?
Okay and thanks! :-)