WP1
11-20-2000, 02:03 PM
Hello,
This is my first time posting to this forum. I found out about "WebHostingTalk" from a post at SitePointForums.com (http://www.SitePointForums.com).
I am learning how to utilize CGI and I cannot get one of my "training" scripts to work on a particular webhost Xoasis.com (http://www.Xoasis.com). Every time I fill out the form and click submit, I am taken back to
the following URL,
http://www.xoasis.com/benefits.html
I have written them multiple times with now response. Cannot figure out what is going on. I will be posting separately about this problem with Xoasis and another host.
Please see the form on
http://jaja.xoasis.com/form.htm
The HTML for this form is,
<html>
<head>
<title> Submit Your Information </title>
</head>
<body bgcolor="#ffffff" text="#000000" id=all>
<h1> Submit Your Information </h1>
<p>
<form action="/cgi-bin/display.cgi" method="post" >
First Name: <input type="text" size="30" name="first"> <br>
City: <input type="text" size="30" name="city"> <br>
Favorite Food: <input type="text" size="30" name="food"> <br>
<P> <input type="submit" name="submit" value="Submit!">
<input type=reset name=reset value="Reset">
</form>
</body>
</html>
I uploaded a cgi file via ASCII. The name of the file is "display.cgi",
#!/usr/local/bin/perl
require "subparseform.lib";
&Parse_Form;
$name = $formdata{'name'};
$city = $formdata{'city'};
$food = $formdata{'food'};
print "Content-type: text/html\n\n";
print "Thank you, here is the information you entered: <br> ";
print " - First Name: $first <br> - City: $city <br> ";
print " - Favorite Food: $food";
I then went through the process of the "chmod" thing with the "display.cgi"
file and checked off the boxes
owner read, write, execute
group read, execute
other read, execute
This file should have a chmod of 755. When I check the "DirInfo" after
refreshing the files I get the following,
-rwxr-xr-x
I have also installed the "subparseform.lib" file within the CGI-BIN.
Please let me know If I am doing something wrong.
Thanks in advance,
WP
This is my first time posting to this forum. I found out about "WebHostingTalk" from a post at SitePointForums.com (http://www.SitePointForums.com).
I am learning how to utilize CGI and I cannot get one of my "training" scripts to work on a particular webhost Xoasis.com (http://www.Xoasis.com). Every time I fill out the form and click submit, I am taken back to
the following URL,
http://www.xoasis.com/benefits.html
I have written them multiple times with now response. Cannot figure out what is going on. I will be posting separately about this problem with Xoasis and another host.
Please see the form on
http://jaja.xoasis.com/form.htm
The HTML for this form is,
<html>
<head>
<title> Submit Your Information </title>
</head>
<body bgcolor="#ffffff" text="#000000" id=all>
<h1> Submit Your Information </h1>
<p>
<form action="/cgi-bin/display.cgi" method="post" >
First Name: <input type="text" size="30" name="first"> <br>
City: <input type="text" size="30" name="city"> <br>
Favorite Food: <input type="text" size="30" name="food"> <br>
<P> <input type="submit" name="submit" value="Submit!">
<input type=reset name=reset value="Reset">
</form>
</body>
</html>
I uploaded a cgi file via ASCII. The name of the file is "display.cgi",
#!/usr/local/bin/perl
require "subparseform.lib";
&Parse_Form;
$name = $formdata{'name'};
$city = $formdata{'city'};
$food = $formdata{'food'};
print "Content-type: text/html\n\n";
print "Thank you, here is the information you entered: <br> ";
print " - First Name: $first <br> - City: $city <br> ";
print " - Favorite Food: $food";
I then went through the process of the "chmod" thing with the "display.cgi"
file and checked off the boxes
owner read, write, execute
group read, execute
other read, execute
This file should have a chmod of 755. When I check the "DirInfo" after
refreshing the files I get the following,
-rwxr-xr-x
I have also installed the "subparseform.lib" file within the CGI-BIN.
Please let me know If I am doing something wrong.
Thanks in advance,
WP
