in reply to Re^5: Redirection question
in thread Redirection question

ok... Don't rip me a new a$$, but I would like some direction... I have the following that I need to work. I am used to having this type stuff in an html document and not a .cgi script. Can you point me in the direction to do this.
#!/usr/bin/perl use CGI qw(:standard -debug); print "Content-type: text/html\n\n"; print "<html><b><h2>Page Under Construction</h2></b>\n"; print "<b><h3>To add another product please complete the following for +m:</h3></b>\n"; print "<BODY></FORM>\n"; print "Product Name (i.e. Shaving Cream): <input type=text name=pname +size=40 maxlength=80><p>\n"; print "Unit of Issue (i.e. ea, gal, pkg): <input type=text name=unit s +ize=5 maxlength=5><p>\n"; print "Quantity to Add: <input type=text name=qty size=7><p>\n"; print "Cost per unit: <input type=text name=cost size=10><p>\n"; print "<input type=hidden name=action value=a>\n"; print "<input type=submit value=Add Product> <input type=reset value=R +eset Form>\n"; print "<HTML><FONT SIZE=3>\n"; print "<A HREF='http://carrotcake.nsm.tridenttech.edu/dbhome.html'>\n" +; print "Return to Selection Page"; print "</HTML></FONT>\n"; print "</BODY></FORM>\n";

Replies are listed 'Best First'.
Re^7: Redirection question
by wfsp (Abbot) on Nov 21, 2004 at 09:28 UTC
    In cases like this I usually keep all the html in a separate file.
    I then read it and print it (after the content header).
    When I do it this way I can check the html in a browser first to make sure it is what I want.
    btw your html looks a little odd. Have you checked it?

    Take it steady, you'll get there in the end :-)