Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.