[Xitami] cgi form result
Leon Raymer
xitami@lists.xitami.org
Sat, 08 Mar 2003 14:44:58 -0600
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/