Re: [MacPerl] Form Script and uploading cgi scripts on the web site
[email protected] (David Steffen) Mon, 19 Feb 2001 07:52:20 -0600
| Newsgroups | perl.macperl.webcgi |
|---|---|
| Message-ID | <v04210100b6b6d0706caf@[206.109.105.75]> |
Bhavul,
In reply to:
>I have the following queries. I am new to mac perl scripting.
1) You are posting in the wrong place.
> macperl-help is not a mailing list. It is an email address for
technical help with the mailing lists and is never right for a
question about MacPerl.
> Because CGI programming is such a popular topic, there is a
special list for questions about CGI's: [email protected]. All
followups should go there.
>I have a submit button on my form. I want that when the user presses the
>submit button on the form. The user should arrive a new page on the browser
>which should say just one line of text.
>How do I attach the cgi script to the submit button.
The CGI script is attached to the whole form, not the submit button.
>I am using claris homepage to develop my pages.
I know nothing about Claris Homepage, but I can practically guarantee
that when you create a new form, one of the things you specify is the
URL of the CGI to which it is attached.
>Another question is what do I need to do so
>that my resulting test should come on an new html page.
(By new page I am assuming you mean a new window in your browser such
that the form remains in the old window. It you really mean you just
want your browser to go to a new page, then the answer is "nothing";
that's the normal behavior.)
It is an additional parameter in the form HTML tag, e.g.:
<form action="http://www.example.com/cgi-bin/test.cgi" method="post"
target="_blank">
The target="_blank" parameter causes your browser to open a new window.
Again, I don't know how Claris Homepage handles this, but you can
hand edit the HTML to add this if necessary.
>How to upload the cgi script/
>
>My server has a cgi-bin directory. I created a sample html file which had a
>link to a sample perl script. I uploaded my sample page in the main
>directory and the perl script in the cgi-bin directory. When I clicked on to
>the link to execute the perl script. It showed me a page saying that access
>forbidden. What do I need to do
Is the server a Mac? Unix? Something else? Once you answer that, I
will continue.
-David-
David Steffen, Ph.D.
President, Biomedical Computing, Inc. <http://www.biomedcomp.com/>
Phone: (713) 610-9770 FAX: (713) 610-9769 E-mail: [email protected]