For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > March 2005 > call a cgi-script from a HTML-form









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author call a cgi-script from a HTML-form
Krause Susanne

2005-03-23, 8:55 am


Hi all.

I try to call a Perl-script from a HTML-form (method get).

The result, I am getting, is wrong.

Instead of executing the script, the webserver is asking me, where I
wont to save (per ftp) the Perl-script.


What I am doing wrong ?

Any help is highly appreciated.

Best regards
Susanne
Thomas Bätzler

2005-03-23, 8:55 am

Gr=FCezi,

Krause Susanne <Susanne.Krause@swisslife.ch> asked:
> I try to call a Perl-script from a HTML-form (method get).
>=20
> The result, I am getting, is wrong.
>=20
> Instead of executing the script, the webserver is=20
> asking me, where I wont to save (per ftp) the Perl-script.
>=20
>=20
> What I am doing wrong ?


You're asking in the wrong place ;-)

This is a web server configuration issue, not a Perl problem.

Maybe this'll help you:
http://httpd.apache.org/docs/howto/cgi.html

HTH,
Thomas
Bill Stephenson

2005-03-23, 3:55 pm


On Mar 23, 2005, at 5:37 AM, Thomas B=E4tzler wrote:

> Gr=FCezi,
>
> Krause Susanne <Susanne.Krause@swisslife.ch> asked:
[color=darkred]
> You're asking in the wrong place ;-)
>


I would disagree with that because Krause's message is kind of vague...=20=

Calling a perl script from a web browser seems to be a "Beginners CGI"=20=

issue to me, or at least a place to start.

> This is a web server configuration issue, not a Perl problem.


Maybe.

>
> Maybe this'll help you:
> http://httpd.apache.org/docs/howto/cgi.html


Can't hurt ;)

Krause, you should send a bit more detail. A link to the script and=20
form would help.


Kindest Regards,

--
Bill Stephenson

kevindotcar

2005-03-23, 3:55 pm


Bill Stephenson wrote:
[---]
>
>
> Can't hurt ;)
>
> Krause, you should send a bit more detail. A link to the script and
> form would help.
>
>
> Kindest Regards,
>
> --
> Bill Stephenson


Yes, but that would expose her server code.... not a good idea to do in
a million-person forum. Anyway, the provided link should provide
everything necessary to solve the problem.


K.C

Renard

2005-03-25, 3:55 am

If you are on Windows and you have a ".pl" file type association with
either an editor or perl then you need to break that file type association
so that your script is not opened if you click on it. Afterwards, the
browser will not asked you where you want to save script.


----- Original Message -----
From: <beginners-cgi-digest-help@perl.org>
To: <beginners-cgi@perl.org>
Sent: Thursday, March 24, 2005 9:11 PM
Subject: beginners-cgi Digest 25 Mar 2005 02:11:28 -0000 Issue 704

On Mar 23, 2005, at 5:37 AM, Thomas Bätzler wrote:

> Grüezi,
>
> Krause Susanne <Susanne.Krause@swisslife.ch> asked:
[color=darkred]
> You're asking in the wrong place ;-)
>


I would disagree with that because Krause's message is kind of vague...
Calling a perl script from a web browser seems to be a "Beginners CGI"
issue to me, or at least a place to start.

> This is a web server configuration issue, not a Perl problem.


Maybe.

>
> Maybe this'll help you:
> http://httpd.apache.org/docs/howto/cgi.html


Can't hurt ;)

Krause, you should send a bit more detail. A link to the script and
form would help.


Kindest Regards,

--
Bill Stephenson

Andrew Bryson

2005-03-28, 8:55 pm

Krause Susanne wrote:

> I try to call a Perl-script from a HTML-form (method get).
>
> The result, I am getting, is wrong.
>
> Instead of executing the script, the webserver is asking me, where I
> wont to save (per ftp) the Perl-script.


You would need to provide a sample of what you are doing exactly. Please
post the <form> element from your html and also the perl code that you
think is broken.

Also, it is possible that this problem is being caused by misconfiguration
on your web server. Can you run CGI programs on it normally (ie. not called
from a form)?

Andrew Bryson
http://www.bryson.co.nz
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com