Re: CGI?
Re: CGI?
- Subject: Re: CGI?
- From: Michelle Steiner <email@hidden>
- Date: Fri, 13 Apr 2001 16:49:58 -0700
On 4/13/01 2:15 PM, Jed Verity <email@hidden> wrote:
>
In order for an AppleScript CGI to be successfully triggered from a web
>
page, it must be saved as a stay-open application and placed somewhere in
>
the web directory (or in the cgi-bin folder, if specified by your webserving
>
software). The name of this stay-open applet should be terminated with
>
".acgi".
OK, that I understand.
>
The final result of of the CGI should be an HTML page that is constructed
>
within the script. A simple example:
>
>
on handle_cgi_request
>
--do stuff
>
return "<HTML>Returned from CGI</HTML>"
>
end handle_cgi_request
So, the return value is all the html code that would display a web page?
>
This page is displayed in the browser upon completion of the CGI script. It
>
could show results of the script, errors, a "thank you for...", a <meta
>
http-equiv> to redirect the browser, or anything else you want!
It sounds there like the result will be a separate page in and of itself.
All I want to do is incorporate a counter within an existing page, for
example at the botton of the page, there would be one sentence that says
Since May 1, 2001, a total of <number> people have visited this web page.
With the number incrimenting every time the page is accessed.
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------