#1  
Old 4th March 2006, 23:42
hunter13605 hunter13605 is offline
Junior Member
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Help!!! - Perl

Code:
#!/usr/bin/perl

use CGI::Carp qw(fatalsToBrowser);
use CGI;
$query = new CGI;

print $query->header;
print $query->start_html(-title=>'Password demo');

print "<FONT FACE = 'arial' SIZE = '2'>";
print "<FORM ACTION = '/cgi-bin/pindemo2' METHOD = 'post' > ";
print "<BR>Welcome! To begin the session, please enter your Personal Identification Number (PIN) and password. </B><BR><BR>";
print "<TABLE>
<TR>
<TD><FONT FACE = 'arial' SIZE = '2'> PIN</TD>
<TD> <INPUT TYPE='textbox' NAME='pin' SIZE='25' MAXLENGTH='30'></TD>
</TR>
<TR>
<TD><FONT FACE = 'arial' SIZE = '2'> Password </TD>
<TD> <INPUT TYPE='password' NAME='password' SIZE='25' MAXLENGTH='30'></TD>
</TR>
</TABLE>";

print "<INPUT TYPE='submit' VALUE='Submit'>";
print "</FORM>";
print $query->end_html;
This is code that i got from a tuitorial in a book. It works on the website that gose along with the book but when i try to run it from my webserver (PQD Networks) i get a 500 internal service error. I did have to change the first line of the code to point to the PERL directory.

You can view the file on my server at http://www.match.nnysitedesigns.net/cig-bin/pindemo1.pl

you can view the working version at:
http://www.web-research-design.net/cgi-bin/pindemo1.pl

Thanks in advanced.
Reply With Quote
Sponsored Links
  #2  
Old 5th March 2006, 15:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

You must make sure that you saved the script with Unix linebreaks, not Windows linebreaks. Then you must make the script executable:
Code:
chmod 755 /path/to/pindemo1.pl
And if you're using suExec, then the owner and group of the script must match the suExec user and group.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl error message namit Programming/Scripts 12 11th October 2007 13:40
New Install perl error!! cybereatl Installation/Configuration 5 26th February 2006 17:06
empty recycle bin + commit changes immediately Ovidiu General 10 18th January 2006 21:19
PERL scripts in Mozilla Browser Deepthi Server Operation 3 20th December 2005 14:01
Installing Perl modules fernando Installation/Configuration 1 10th May 2005 20:16


All times are GMT +2. The time now is 19:44.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.