Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Answer: What causes 'premature end of script headers'?

by gvs_jagan (Initiate)
on Jun 10, 2005 at 12:26 UTC ( #465531=categorized answer: print w/replies, xml ) Need Help??

Q&A > CGI programming > What causes 'premature end of script headers'? - Answer contributed by gvs_jagan

You could encounter the 'premature end of script headers'

1) In case you were trying to accept values from a html page thru textfields

per se

print p("enter your name" , textfield("nam","");

missing out on one of the coats could cause it. For instance

print p("enter your name", textfield("nam , ""); #the end coat near nam is missing, this could cause

2) Also if you forget paranthesis near the html headers . In the below mentioned case missing out the paranthesis near the end_html could cause you the error

print header, start_html() ;
end_html();# leaving the paranthesis here

regards jagan

  • Comment on Answer: What causes 'premature end of script headers'?
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2017-10-23 06:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (277 votes). Check out past polls.

    Notices?