FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


problem with cgi perl script





abhinav_shah
Here is a file web1.html
Code:

<html>
<body bgcolor=#ffffff>

<h1><p align="center">ERP TEST SYSTEM</p></h1>

<hr />
<form action="http://abhinav.frih.net/cgi-bin/temp.pl" method="post">
<table align="center">
<tr><td><b>E-mail</b></td><td><input type="text" name="email"/></td></tr>
<tr><td><b>ERP tar file name</b></td><td><input type="text" name="erp" /></td></tr>
</table>
<p align="center"><input type="submit" value="Submit"/>
<input type="reset" value="Reset" /></p>
</form>
</body>
</html>




Here is the file temp.pl
Code:

#!/usr/bin/perl
use CGI;
print "content-type: text/html \n\n";
$q = new CGI;

$email = $q->param('email');

$path = $q->param('erp');
print "<html>";
print $email;
print "</html>";


Now the problem is when i click the submit button on www.abhinav.frih.net/erp/web1.html
i get an error
Code:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@abhinav.frih.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Now when i go to the direct admin panel and check for the error log i get an error
Code:
 No error document


I have done chmod 777 do temp.pl

Can anyone help.

Abhinav
Related topics
CGI/Perl Script to backup a website.
CGI FormMail Script Part II
Running a Perl script in the background
I have a perl Script.. but i dont know how to use.
Problem with perl script
executing a perl script
the blog program?
Problem with a script
im installing a perl script in my website and..
HELP needed with basic Email perl script.
executing a perl script from within a script
knowing php/mysql, Is CGI/Perl worth learning?
Executing a Perl CGI script
Perl problem
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.