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 14 October 2006 - 12:35 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 coldkill

  • Members
  • PipPipPip
  • Advanced Member
  • 159 posts
  • LocationUnited Kingdom

Posted 14 October 2006 - 02:17 PM

I'm slightly confused by your problem here. The price updates but the database doesn't?

Try asking in the AJAX forum since this would probably come under that.

You can learn alot from reading the manual

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users