Jump to content

Recommended Posts

Where to start?

I modified and exiting shopping cart which consists of data being posted from one form to another. I have added a field named price each and the customer is supposed to input there own number in this field which then gets posted to the final thanks page with an email being sent. The field works but not when more than one item is selected the field duplicates the last value entered in the field for each item, ie.. if price each is 2.00 it duplicates 2.00 in every field even if 1.50 was entered on a different item.

What am I missing currently the field has a name of 'each' which is causing the duplication because if passes the value for 'each' to everyline instead of the unique 'each' field I am looking to have. How do I add this text field but make the 'value' unique so it can be passed on uniquely ?

Thanks,

mtsi
Link to comment
https://forums.phpfreaks.com/topic/9933-form-help/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.