in reply to I almost got it!

It looks like you're trying to use CGI.pm to me ... this code will work: #!/usr/bin/perl use CGI; $q = new CGI; $query = $q->Vars; print "Content-type: text/html\n\n"; $text=$query->{message}; print "<HTML><BODY>
$text
</BODY></HTML>"; ... where you call the script as script.cgi?message=whatever

Replies are listed 'Best First'.
RE: RE: I almost got it! (code reformatted)
by Anonymous Monk on Apr 25, 2000 at 08:20 UTC
    Ik! Sorry, that was my first post ever ... I didn't realize i had to format the code myself. ________________________
    #!/usr/bin/perl
    
    use CGI;
    
    $q = new CGI;    
    $query = $q->Vars;   
    
    print "Content-type: text/html\n\n";
    $text=$query->{message};
    print "<HTML><BODY>
    $text
    </BODY></HTML>";
    _______________________ Hope that works :-)