in reply to Stuck on some real basic cgi perl

Unless you've got more information than just "it doesn't do it", your problem is probably that you don't send out (the right) headers.

Additional note; if you want to just print big wads of HTML, using multiple print() statements is inefficient, ugly and hard to maintain. Use heredocs instead:

print <<ENDHTML; # print everything up until the marker <html> <head><title>Message Main Menu</title></head> <h1><font color=green>Message Main Menu</font></h1> <body> <form action="../cgi/messages.pl" method=post> <input type=submit name=query_messages value = "Query Messages" s +tyle="position:absolute; left: +80 width: 20em"><br><br> <input type=submit name=add_message value = "Add Message" style=" +position:absolute; left:80 wid +th: 20em"><br><br> <input type=submit name=modify_message value = "Modify Message" s +tyle="position:absolute; left: +80 width: 20em"><br><br> <input type=submit name=delete_message value = "Delete Message" s +tyle="position:absolute; left: +80 width: 20em"> </form> </body> </html> ENDHTML
templates are usually even better.

Replies are listed 'Best First'.
Re^2: Stuck on some real basic cgi perl
by o2bwise (Scribe) on Apr 13, 2007 at 14:44 UTC
    Hey Joost, I replied to Phil about the headers, wasn't that. I was missing a semicolon in the style statement, so, it was the html.

    Thanks for that more streamlined print method!

    Tony