What do i do wrong? Please help - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

What do i do wrong? Please help

Hello there, im still new to perl, and already stumbled into a problem. I wrote this code:





print "Content-type: text/html";

print "/html//head//title/Niels//title///head/";

print "/body//b/Welcome to my page //b//body///html/";







Ps. i made the "<" and ">" into "/" because i thought this mboard would make it into plain html



Well when i go to the url where this script is uploaded it gives an error, can anybody please help me?


URL:http://hammer.prohosting.com/~dundee/cgi-bin/boe.pl

Comments



  • append two
    to the end of hte first lines, when doing cgi work, and outputting to the browser you need to send the http headers,



    and the browser know these have finsihed by a blank line, hence the





    print "Content-type:text/html

    ";

    print "hello from ", $ENV{SCRIPT_NAME};



    : Hello there, im still new to perl, and already stumbled into a problem. I wrote this code:

    :

    :

    : print "Content-type: text/html";

    : print "/html//head//title/Niels//title///head/";

    : print "/body//b/Welcome to my page //b//body///html/";

    :

    :


    :

    : Ps. i made the "<" and ">" into "/" because i thought this mboard would make it into plain html

    :

    : Well when i go to the url where this script is uploaded it gives an error, can anybody please help me?

    :






    URL:http://plebian.com

Sign In or Register to comment.