/    Sign up×
Community /Pin to ProfileBookmark

Form assistance needed

This form does not send the “Product Price” to the shopping cart in this format. However, when I add the following line:
<input type=”hidden” id=”ProductPrice” value=” 35.00″ name=”ProductPrice”>
the 35.00 price gets sent.

Please help.

<form action=”https://cart.net/securecart.asp” method=”post” name=”selection_form” >
<select id=”selection” name=”selection” size=”1″>
<option name=”ProductPrice” id=”ProductPrice” value=”35.00″ SELECTED>50 Grams $35.00</option>
<option name=”ProductPrice” id=”ProductPrice” value=”75.00″>100 Grams $75.00</option>
<option name=”ProductPrice” id=”ProductPrice” value=”300.00″>1 lbs. $300.00</option>
</select>

<input type=”hidden” value=”507814″ name=”StoreID”>
<input type=”hidden” id=”ProductName” value=” Powdered” name=”ProductName”>

<input type=”hidden” value=”0″ name=”ProductWeight”>
<input type=”hidden” value=”0″ name=”ProductLength”>
<input type=”hidden” value=”0″ name=”ProductHeight”>
<input type=”hidden” value=”0″ name=”ProductWidth”>
<br>
<input type=”image” src=”pageimages/button-buynow.gif” border=”0″ onclick=”submitform()”>

</form>

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@ray326Mar 19.2007 — Have you tried

<select id="ProductPrice" name="ProductPrice">

and leaving the name/id off the options?
Copy linkTweet thisAlerts:
@targetingauthorMar 19.2007 — Thanks, now it adds the first item that I select from the drop down, but then when I go back to the same page to select any other item from that list, it does not add it to the shopping cart while adding any other item that is not on the drop down list.

Also, it would be great if I could solve the problem with not being able to change one of the values in the form according to the item that is selected in the drop down menu.

Here is the link to the post:

https://webdeveloper.com/forum/showthread.php?t=142212


Thanks
×

Success!

Help @targeting spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...