Re: Problems getting a simple form to work.

2003-04-04 Thread javamaster
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('username');

When you are using strict all variables must be declared with the my.

print Content-type: text/plain\n\n;
print You entered: $username\n;
The permissions look like this:

Permissions for cgi-bin: rwxr-xr-x
Permissions for simpleform.cgi rwxr-xr-x
Permissions for simpleform.htm: rwxr-xr-x
Out of curiosity why is the simpleform.htm chmod 755 instead of 644?

I have changed form method=post action=../cgi-bin/simpleform.pl to
form method=post action=http://www.mikyo.com/cgi-bin/simpleform.cgi;.
I am still getting the 500 error.

Thanks,

 - Mike
 



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


Re: Good Perl cgi book?

2003-03-18 Thread javamaster
Bob X wrote:

What is the best book for a beginner to get started with on Perl and CGI?

Bob



 

MY favorite is /Sams Teach Yourself Perl in 24 Hours./

Tim



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


passing page URL to SSI script

2003-03-11 Thread javamaster
I am including the same CGI script as an SSI on several web pages. I 
need to know which page the script was run from (something like the 
javascript window.location variable). I want to be able to know if the 
script was executed from index.html, or contact.html, or products.html, 
etc. I cannot find anything and I was wondering if anyone had any ideas. 
Thanks.

Tim Brom
[EMAIL PROTECTED]


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