Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry router security slow software sound toshiba trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Software Development >
CGI script error

Reply  
Thread Tools
bmck's Avatar
Member with 38 posts.
 
Join Date: Dec 2004
Experience: Beginner
22-Sep-2006, 01:28 AM #1
CGI script error
I am getting an error when I run a CGI script. I ran a very similar script before and had no problems. The script calls for the client to enter name and e-mail address. I have 3 subroutines to handle errors. The first one is generated when no name is entered. The page is returned and the client is requested to enter name and submit. The second checks the e-mail format and if incorrect sends the page back for correction. The third page is returned if the e-mail address is blank. This is the one that is erroring. When I leave the e-mail blank and submit I get a server error. This is the error log.

Thu Sep 21 20:46:46 2006] [error] [client 24.29.59.19] malformed header from script. Bad header=</body></html>: /home/tar3150/public_html/cgi-bin/list.cgi Name "main::hour" used only once: possible typo at list.cgi line 2. Name "main::allow" used only once: possible typo at list.cgi line 27. Name "main::mon" used only once: possible typo at list.cgi line 2. Name "main::thisday" used only once: possible typo at list.cgi line 5. Name "main::wday" used only once: possible typo at list.cgi line 2. Name "main::sec" used only once: possible typo at list.cgi line 2. Name "main::min" used only once: possible typo at list.cgi line 2. Name "main::yday" used only once: possible typo at list.cgi line 2. Name "main::gif4" used only once: possible typo at list.cgi line 19. Name "main::thishour" used only once: possible typo at list.cgi line 3. Name "main::entry" used only once: possible typo at list.cgi line 26.

Since these subroutines are very similar to the ones used before I don't know what is happening. Can anyone help?
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:12 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.