[Xitami] cgi form result

Axel Bohler xitami@lists.xitami.org
Sat, 8 Mar 2003 23:12:43 +0100


Hi!

Try to use #!perl instead of #!C:/Perl/bin/perl -wt


Axel


-----Original Message-----
From: xitami-admin@lists.xitami.org
[mailto:xitami-admin@lists.xitami.org] On Behalf Of Leon Raymer
Sent: den 8 mars 2003 21:45
To: xitami@lists.xitami.org
Subject: [Xitami] cgi form result

Okay. Another newbie query. I have the followinig simple html form 
attempting to post to a simple cgi result page, also shown below. The
html 
form opens the cgi page in the browser but nothing is rendered and the 
Xitami icon in the Windows task tray times out.

Let me prface by declaring that I am running Xitami v2.4d9 straight out
of 
the box, on a Windows98 system, with the original .cfg file. And, the
two 
scripts below are textbook examples. All that is changed is the path to
my 
Perl and that is ActiveState version 5.8.0.

All help will be greatly appreciated. I've been brickWalling this for a 
couple of weeks and confidence in Xitami, Perl and the whole cgi process
is 
quickly waning.

thanks, Leon

#the animal.html form file
<html>
<head>
<title>Animal Form</title>
</head>
<body>
<form action = "http://localhost/cgi-bin/animal.cgi" method =
"post">what's 
your favorite animal?<br />

<input type = "text" name = "animal" size = "30" />
<input name = "submit" type = "submit" value = "submit" />
</form>
</body>
</html>

#the animal.cgi file

#!C:/Perl/bin/perl -wt
use strict;
use cgi ':standard';

my $animal;
$animal = param('animal');

print "content-type: text/html\n\n";
print "Show me the $animal";


Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

--
Xitami Users Mailing List -- For Xitami support
To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami