View Single Post
Old 01-30-2005, 10:59 AM   #2 (permalink)
franzelneekburm
Tilted
 
Location: Boston
Your problems are several.

The first thing that a CGI script should send to the browser is a content type, followed by two newlines, eg: "Content-Type: text/html\n\n".

When none is specified, IE defaults to 'text/html', whilst Mozilla defaults to 'text/plain'.

Secondly, Mozilla is dead and buried, you should really be testing with Firefox. As an extra bonus, there's a heap of extremely useful web development tools for it.

Thirdly, CGI has been dead and buried for several decades. For Perl web development you'll want to look at mod_perl, and while you are at it, look at a templating engine, or two. I'll leave it to others to recommend various HTML-embedded scripting languages, as I personally dislike them immensly.

Lastly, it's 'Perl', not 'PERL' - stupid, I know, but it's the first thing you'll be told (in liue of a helpful answer) at any Perl related forum.
franzelneekburm is offline  
 

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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76