> More on my form question. If I use the code reproduced below, the form
> functions properly and I see my DVDrom order posted on the shopping cart.
> If, however, I remove all but the first <FORM
> action="http://www.cartserver.com/sc/cart.cgi" method=POST> and the last
> </FORM>, my images line up horizontally OK, but the form no longer
> functions properly. I can't see a reason for it to not function. Can you?

I you are removing the type=hidden tags, then the cgi script is not getting
all the data it needs. type=hidden tags hold values that are sent to your
script in pairs. This tag:

<INPUT type=hidden name=item value="a-3003^TLCDVDR^TLCDVD-ROM^45.00^1^5.50">

sends this pair:

item=a-3003^TLCDVDR^TLCDVD-ROM^45.00^1^5.50

to the script. To see it in action, change method=POST to method=GET, then
try to use (submit) your form. The script may not work (if the script denies
method=GET data), but the url in your browser will show you the pair.

type=hidden tags hold variables that are either "hardcoded" (written right
into your html) or hold variables that are set by the script that generated
the page in the first place (usually as a result of something done on the
previous page). These tags do not place anything on the page and do not
result in any spacing problems, but they allow you to store info that is
relevant to the script.

> <FORM action="http://www.cartserver.com/sc/cart.cgi" method=POST>
> <INPUT type=image border=0 name=add src="art/ordernow.gif" WIDTH="77"
> HEIGHT="15" BORDER="0" HSPACE="0" VSPACE="0">
> <INPUT type=hidden name=item value="a-3003^TLCDVDR^TLC
> DVD-ROM^45.00^1^5.50"></FORM>
>  <FORM action="http://www.cartserver.com/sc/cart.cgi" method=POST>
> <INPUT TYPE=hidden name=item VALUE="a-3003"><INPUT type=image border=0
> name=checkout src="art/checkout.gif" WIDTH="108" HEIGHT="15" BORDER="0"
> HSPACE="0" VSPACE="0">
> </FORM>

Jack

____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------

Reply via email to