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)
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.