CGI Trouble

This is a discussion on "CGI Trouble" within the Other Programming Languages section. This forum, and the thread "CGI Trouble are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Other Programming Languages

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 31st, 2006, 18:24
Junior Member
Join Date: Jul 2006
Location: Maine
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
CGI Trouble

I am trying to learn CGI but I am having a little trouble.

#!/usr/bin/perl -wT
print "Content-type: text/html\n\n";
print "<html><head><title>Hello World</title></head>\n";
print "<body>\n";
print "<h2>Hello, world!</h2>\n";
print "</body></html>\n";

This is a very simple script but when I view it in my browser it shows

#!/usr/bin/perl -wT print "Content-type: text/html\n\n"; print "\n"; print "\n"; print "
Hello, world!

\n"; print "\n";


Its supposed to only show hello world?
Reply With Quote

Reply

Tags
cgi, trouble

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
css navigation bar trouble danny322 Web Page Design 7 Dec 17th, 2007 14:47
Trouble with onLoadError Darren Spidell Flash & Multimedia Forum 0 Apr 2nd, 2007 14:39
Having Trouble with Formmail.php fireboat PHP Forum 2 Mar 18th, 2007 07:42
Having trouble with PHP voodoo465 PHP Forum 5 Feb 20th, 2007 21:47
Browser trouble? sheltomlee Starting Out 4 Jan 28th, 2007 21:47


All times are GMT. The time now is 10:25.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43