On 4/4/02 9:16 AM, David R. Baird <[EMAIL PROTECTED]> wrote:

Hi David,

> I have cgi script that is INCLUDEd in a web page:
> 
> page.html:
> 
> <html><head></head><body>
> 
> <!--#exec cgi="/cgi-bin/nb.cgi" -->
> 
> </body></html>
> 
> The script prints out a form. When the form's method attribute is GET ie

> <form method="post" action="page.html">

I assume you mean 'method="get"' here.

> , it works fine, but I want to process
> a password, so I need to POST to page.html When I do, I get a 405 error:
> 
> The requested method POST is not allowed for the URL /page.html.
> 
> Is there any way I can POST to a .html URL? I am running Apache/1.3.20 Server
> on Win 98. 

How would that work? HTML are simply text files that are formatted by the
browser. How would they process arguments? If you're trying to post to an
..html file, which is static, you may as well just link. If you want to send
a user to a static HTML page after you process their posted data, just use a
redirect header, or print out your HTML with the script that processes the
data.

If you have a Perl script with a .html, posting to a ".html" file is not
your largest problem.

I notice that you're including the output of a Perl script in your HTML, but
that makes no difference. It's still HTML, it's just being parsed for SSI.
Since the static HTML in your example is so minimal, why not just add a few
extra 'print's so your script and point the form to it?

hth,
-- 
Michael


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to