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.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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 15: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 08:42
Having trouble with PHP voodoo465 PHP Forum 5 Feb 20th, 2007 22:47
Browser trouble? sheltomlee Starting Out 4 Jan 28th, 2007 22:47


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


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