|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CGI Form Error
when ever i do a from with perl or cgi, it messes up. I made a guestbook. When i tested the submittion button, it gave me a
Internal Server Error Its has done this with many other forms i have tried. Whats wrong? ( i run an apache server) |
|
#2
|
|||
|
|||
|
Possibile Problems
It may be one of the following problems...
1. Syntax error somewhere in your script. 2. Permissions aren't set correctly for the script. Should be 755. 3. Script wasn't uploaded to server in ascii mode. 4. You have no html output or redirect in file. Make sure that you have a statement like a. print "Content-type: text/html\n\n"; - or - b. print "Location: URL"; Bob |
|
#3
|
|||
|
|||
|
i run on windows..so i can't really chmod..is that the problem?
|
|
#4
|
|||
|
|||
|
Test via dos command line
Try :
1. look in your error_log for error messages 2. In dos , in your cgi-bin directory : perl -c name.pl [ or perl -c name.cgi ] this will test compile and should produce an error if there is a syntax error . 3. First line = #!c:/perl/bin/perl ?????
__________________
Thanks Foot in Mouth ver 1.2.5 Onion |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > CGI Form Error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|