35 users online (2 members and 33 guests)  


  Results 1 to 4 of 4

Related

  1. Replies: 6
  2. displaying icon in IE7 Tab header    Forum: HTML Forum
    Replies: 2
  3. Replies: 1
  4. Same Header Side Bar On Every Page    Forum: HTML Forum
    Replies: 1
  1. #1
    steak's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2005
    Posts
    3

    content type header

    I am taking a class on perl so my question may sound stupid, but I can't get the cgi to work
    my script looks like this:
    use cgi ;
    my $query = new CGI;
    print $query->header;
    print $query->start_html("Example CGI.pm Form");
    print "<H1> Example CGI.pm Form</H1>\n";
    print $query->end_html

    I am using the DzSoft perl editer and the d@m% thing keeps
    giving the error:
    Warning: Content-Type header not found in the script output. If this script is not a CGI one, please use the Run -> Run in Command Prompt menu to run it.

    does anyone know how to remedy this situation?

  2. #2
    steak's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2005
    Posts
    3
    I was reading some of the other postings and saw something that looked like it might help and it did not change anything for me, I added
    print "Content-type: text/html\n\n";

  3. #3
    steak's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2005
    Posts
    3
    I continued reading and found a workaround

  4. #4
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    Glad you got it solved

    Dave



Tags for this Thread