> Hi, Howdy!
> I have a cgi code like the one below.when i run this program > i got the error message as premature end of script headers in > my server's > error log.I am new to this CGI module. > > use CGI; > $a=CGI->new(); > print $a->header("text/html\n\n"); Header() does text/html by default so all you need to dois: print $a->header(); And if you are specifying the content type in the function call you don't need the tewo newlines: print $a->header('text/html'); HTH DMuey > @name=$a->param; > foreach(@name) > { > @values=$a->param($_); > print qq/@values\n/; > } > thanks, > visu > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]