in reply to Question regarding CGI and cookies

It looks like you're missing your form code. The above simply prints out the contents of a submitted basket -- from another form on another page.

To add the form code, take a look at CGI.

Hope that helped,
-v
"Perl. There is no substitute."

Replies are listed 'Best First'.
Re^2: Question regarding CGI and cookies
by JOT007 (Novice) on Nov 09, 2004 at 01:23 UTC
    It is pulling info from a html doc...here is the code for it.
    <!c11ex6.html> <HTML> <HEAD><TITLE>Wicker Baskets, Inc.</TITLE></HEAD> <BODY bgcolor="#ffcccc"> <H1>Wicker Baskets Inc.</H1> <HR> <FORM ACTION="http://tinfoil.nsm.tridenttech.edu/cgi-bin/c11ex6.cgi" M +ETHOD=POST> <H2>Select a basket:</H2> <P><INPUT TYPE=radio NAME=Basket Value=0 CHECKED>One Pint Square<BR> <INPUT TYPE=radio NAME=Basket Value=1>One Quart Square<BR> <INPUT TYPE=radio NAME=Basket Value=2>One Quart Oblong<BR> <INPUT TYPE=radio NAME=Basket Value=3>Four Quart Square<BR> <INPUT TYPE=radio NAME=Basket Value=4>Four Quart Oblong</P> <P><INPUT TYPE=submit VALUE="Purchase This Basket"></P> </FORM></BODY></HTML>
    As you can see from the above html code, when the user clicks a radio button, it sends the data to a cgi script. This was an exercise in the book we had to do for a graded assignment, with very confusing examples to help us. Just wanting to understand the process the script makes the cookie form the code I submitted, because the process seesm backward unless perl just executes in the no particular order.....
Re^2: Question regarding CGI and cookies
by JOT007 (Novice) on Nov 09, 2004 at 01:16 UTC
    Thank you for the CGI link.....Though I still have not got the answer I was looking for, this site does have some helpful info and is better than our textbook....