I am trying to get a simple form to work on my web site. The simpleform.htm
is located in testarea/simpleform.htm and simpleform.pl is located in
cgi-bin/simpleform.pl.
When I run the script from simpleform.htm I get the following error message:
500 Server Error
Sorry, your request could not be
[..]
>
> Can anyone tell me what I'm doing wrong? Also, is there a way to turn on
> error.log?
Actually, error.log is always turned on... If you are not running the server
on
yours own, ask the server admin where is the error.log located.
[..]
> Permissions for cgi-bin: rwxr-xr-x
> Permissions f
Hi Li, Rob and Mark.
Thanks for your help. My site is being hosted by Hypermart, so I don't have
access to /var/log/httpd. My new simpleform.cgi now looks like this:
#!/usr/local/bin/perl -wT
use CGI;
use strict;
$username = param('username');
print "Content-type: text/plain\n\n";
print "You en
Mike Butler wrote:
Hi Li, Rob and Mark.
Thanks for your help. My site is being hosted by Hypermart, so I don't have
access to /var/log/httpd. My new simpleform.cgi now looks like this:
#!/usr/local/bin/perl -wT
use CGI;
use strict;
$username = param('username');
should be
my $username = param('
Hi,
You have access to your error log in Hypermart through the site tools. Simply click
on "Site Statistics" then on "CGI Error Log" and you'll find the most recent errors.
Etienne Rivard
>>> Mike Butler<[EMAIL PROTECTED]> 04/04/03 01:57pm >>>
Hi Li, Rob and Mark.
Thanks for your help. My s
[..]
> #!/usr/local/bin/perl -wT
> use CGI;
> use strict;
>
> $username = param('username');
should be :
my $username = param('username');
because you've using strict;
>
> print "Content-type: text/plain\n\n";
For what I know, I would write as "Content-type: text/html\n\n";
> print "You entered
I would also add
use CGI::Carp qw(fatalsToBrowser);
along with
use CGI;
use strict;
This way your errors will get displayed in your browser.
Also, check with your hosting company to make sure that your path to perl is
correct (ex. is it #!/usr/local/bin/perl -wT vs. #!/usr/bin/perl -wT)
Andr
Hallo
I need to have my form mail to 2 or 3 addresses.
Anyone familiar enough with this popular program to advise???
Thanks
Lou
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks, Andrew. I added CGI::Carp qw(fatalsToBrowser); to the script. That's
a big help. The error message that I get now is:
Software error:
Undefined subroutine &main::param called at simpleform.cgi line 6.
Line 6 is my $username = param('username');
Any idea why param is undefined?
Thanks,
"Undefined subroutine &main::param called at simpleform.cgi line 6."
Is the error I get for your script when I execute it from
http://www.mikyo.com/cgi-bin/simpleform.cgi
If you want to try what I did, do the following:
1. type in http://www.mikyo.com/cgi-bin/simpleform.cgi to your web
browser
Give this a shot and see if it errors:
use CGI;
my $query = new CGI;
my %params = $query->Vars;
my $username = $params{'username'};
On Fri, 2003-04-04 at 15:29, Mike Butler wrote:
> Thanks, Andrew. I added CGI::Carp qw(fatalsToBrowser); to the script. That's
> a big help. The error message tha
On Fri, 4 Apr 2003, Luinrandir Hernsen wrote:
> Hallo
> I need to have my form mail to 2 or 3 addresses.
> Anyone familiar enough with this popular program to advise???
> Thanks
> Lou
>
Lou, forget it; matt's formmail script has a lot of security flaws
discussed in this list and others.
Try htt
Thanks, Andrew. That did it. It's working now. :) :) :)
Thanks everyone for all your help.
- Mike
-Original Message-
From: Rob Benton [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 4:38 PM
To: Mike Butler
Cc: Hughes, Andrew; [EMAIL PROTECTED]
Subject: RE: Problems getting a sim
I think you meant, "Thanks, Rob."
Andrew
-Original Message-
From: Mike Butler [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 4:45 PM
To: Rob Benton
Cc: Hughes, Andrew; [EMAIL PROTECTED]
Subject: RE: Problems getting a simple form to work.
Thanks, Andrew. That did it. It's workin
It's OK, my feelings aren't hurt :)
On Fri, 2003-04-04 at 15:45, Hughes, Andrew wrote:
> I think you meant, "Thanks, Rob."
>
> Andrew
>
> -Original Message-
> From: Mike Butler [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 4:45 PM
> To: Rob Benton
> Cc: Hughes, Andrew; [EMAIL
On Fri, 4 Apr 2003 at 16:29, Mike Butler opined:
MB:Thanks, Andrew. I added CGI::Carp qw(fatalsToBrowser); to the script. That's
MB:a big help. The error message that I get now is:
MB:Software error:
MB:Undefined subroutine &main::param called at simpleform.cgi line 6.
MB:
MB:Line 6 is my $usernam
16 matches
Mail list logo