[100585] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Apache/WebServer-CGI scripts &

daemon@ATHENA.MIT.EDU (aromes@microtec.net)
Sun Nov 22 00:29:08 1998

From: aromes@microtec.net
Date: Sun, 22 Nov 1998 00:43:25 -0800
To: linux-admin@vger.rutgers.edu
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Hi,
Hundred thanks for your great generous help.
I ve transformed my simple index.html file as follow:
<HTML><HEAD><TITLE>My Apache web server</TITLE></HEAD>
<BODY>
<P>
<FORM METHOD="post" ACTION="http://Localhost/cgi-bin/query.pl">
Enter Username
<INPUT TYPE="TEXT" NAME="USERNAME" SIZE="25" MAXLENGTH="50" VALUE="">
</FORM></BODY></HTML>..
I ve also modified my /home/httpd/cgi-bin/query.pl file as follow
(BTW,thanks to some of you):
#!/usr/bin/perl
require ("cgi-lib.pl"); # I even tried "require cgi-lib.pl" 
&ReadParse;
print <<EOF;
Content-type: text/html
$line=QUERY_STRING  # I even tried "setenv QUERY_STRING USERNAME=spike
			#BTW, when I do that at the command line, I get
			#error=setenv:command not found. if I replace 			#setenv by "set: I get
no error, but the problem 			#still the same.
Thank you, $inf{ USERNAME }, for submitting your comments. ;
#end of /home/httpd/cgi-bin/query.pl

The problem still:
When I use my browser (Lynx), I get the expected entry:
Enter your UserName:---------------
But if I enter "spike" or anything in the blank space, There is absolutely
no reaction.. no signal of  interraction with the CGI-script.
I made sure the ScriptAliases path in srm.conf pointed to the right
CGI-bin path, I even tried <FORM METHOD="post"
ACTION="home/httpd/cgi-bin/query.pl", and all posibilities in the <FORM>
Tag, made sure the cgi-script was executable...still havent tasted the
wonder of interacting CGI with my webserver.

Thanks for Helping again,

Marc


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post