Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Posting Product Info Using Html Forms


alonk

Recommended Posts

Posted

I am trying to post product info from custom PHP files to oscommerce and am stuck.

 

My old shopping cart (Dansie cart) allowed me to use forms (see below). This was very effective because even using javascript, I was able to dynamically change the product info that I was posting to the cart.

 

My product is artwork. The user is allowed to choose:

 

-Artwork design

-Size

-Frame color

-Personalization

 

This amounts to hundreds and hundreds of possibilities. I can't possibly enter each variable (and the resulting jpeg) into the oscommerce database.

 

I appreciate any help.

 

Thank you.

 

 

<FORM METHOD=POST ACTION="http://www.dansie.net/cgi-bin/scripts/cart.pl">

 

Black Leather purse with leather straps<BR>

Price: $20.00<BR>

 

<INPUT TYPE=HIDDEN NAME=name VALUE="Black leather purse">

<INPUT TYPE=HIDDEN NAME=price VALUE="20.00">

<INPUT TYPE=HIDDEN NAME=sh VALUE="1"> <!-- Shipping and Handling -->

<INPUT TYPE=HIDDEN NAME=img VALUE="purse.jpg">

<INPUT TYPE=HIDDEN NAME=img2 VALUE="purse_large.jpg">

<INPUT TYPE=HIDDEN NAME=return VALUE="http://www.dansie.net/demo.html">

<INPUT TYPE=HIDDEN NAME=custom1 VALUE="Black leather purse with leather straps">

 

<INPUT TYPE=SUBMIT NAME="add" VALUE="Put in Shopping Cart">

</FORM>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...