Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: dbi with cgi

by cbro (Pilgrim)
on Jun 24, 2005 at 17:35 UTC ( #469774=note: print w/ replies, xml ) Need Help??


in reply to dbi with cgi

The problem (besides the use strict mentioned previously) is your backwards header. Change "text\html" to "text/html". The way you have it setup causes both Safari and IE to download the file; Mozilla will print your end_html() output directly to the browser instead of interpreting it as HTML code. When loading your test script with IE, I was able to replicate the error you posted. Correct your header and you should be fine.


Comment on Re: dbi with cgi
Replies are listed 'Best First'.
Re^2: dbi with cgi
by Anonymous Monk on Jun 25, 2005 at 01:27 UTC

    cbro you are exactly correct. Now its working fine. Thanks for others also who suggested to correct my code.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://469774]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (16)
As of 2015-07-07 20:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls