I am trying to make an order form. The order form allows people to choose the game, amount of slots, de-branding and rate, each of which effects the cost.
They want the users to have an amount on the fly, and this is easy with a piece of JS that adds up he values when anything is changed using onchange=AddUp()
The problem is my client wants it to be dynamic so they can add games, changes costs of debranding, rates etc.
What i need to happen is the user chooses a game, we will say MOHAA, this pulls from the DB the value of the field PPS which contains a number.
What i need to happen, is when the user selects $game it retrives $pps which is then used in the javascript
playerscost=(eval(document.forms.form.players.value)*</script> <?php echo $_GET['pps'];?><script>
this might be confusing but basically is it possible to retrive a value from a DB when the user selects a certain value from a drop downlist on the fly, or is this just not possible and will i need a form with an action to get all the infomation from the DB and then do the maths.
Hope you can understand
Thanks
Chris