Hi Guys
I have been all over the web searching for an answer. Hope someone can help me.
I have a script with the following:
$total_crt //total available credits (taken from mysql database using php)
$credit // Display an ad credit. (also stored in mysql database using php)
select dropdown box (amount) // New values to be added.
I need to do the following:
When the amount boc changes value, it must change the $credit amount and effect the $total_crt amount (ex. 10 + 10 in credit value - $total_crt value)
So whenever the client chooses a new value from the select box, it must change it emidiately with javascript, but only send to the database once an update button is pressed.
Here is a quick example of my code:
<?php
$total_crt = $row2['total_crt']; //displays total available credit
<table>
<TD>R<?php echo $credit //Displays ad credit?></TD>
<td><select name=\"amount\">
<option value="10">10</option>
<option value="20">20</option>
<option value="30">30</option>
<option value="40">40</option>
</select></td>
</table>
?>
Hope that someone can help me with this.