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

LOL. That's all right, stuff happens. You should check out the movie that's a quote from (follow the link in the signature), its pretty funny.

Hmm, maybe its time for a new MJD quote ........... naaah :)

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re^6: Redirection question
by student (Novice) on Nov 21, 2004 at 08:04 UTC
    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";
      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 :-)