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

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?

What's my password?
Create A New User
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2018-08-17 16:58 GMT
Find Nodes?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:

    Results (182 votes). Check out past polls.