Jump to content


Update total price field when choosing an item

  • Please log in to reply
1 reply to this topic

#1 DjNaF

  • Members
  • PipPipPip
  • Advanced Member
  • 42 posts

Posted 13 October 2006 - 09:06 PM


i didn't know where to post it, in php forum or javascript.

i have a once order page, where you choose items from different drop menus. when ever a user choose am item it add its price in the total text field, in addition i want to save the form in the database mysql.

<option value="ProductID">Product Name</option>

i use the ProductID to save it in mysql, i found a way to calculate price if i placed the price instead of ProductID for the value, but then i can't save the ProductID in the database.

anyone got a solution?

Thank you

#2 fenway

  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 13 October 2006 - 10:46 PM

Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users