Alright...I've had some help from some people over at DevNetwork.com forums...and this is what someone has come up with:
For the HTML portion of the thing:
<select name="currentLevel">
<option value="60">60</option>
...
<option value="69">69</option>
</select>
<select name="newLevel">
<option value="61">61</option>
...
<option value="70">70</option>
</select
and for the PHP section:
PHP Code:
<?php
$array = array();
$array[61] = 9;// amount to move from 60 to 61
$array[62] = 10;// amount to move from 61 to 62
$array[63] = 11;// amount to move from 62 to 63
// ...
$array[70] = 18;// amount to move from 69 to 70
$start = $_POST['currentLevel'];// get viewer's current level
$end = $_POST['newLevel'];// get viewer's desired level
$total = 0;// create a total variable
for ($i = $start; $i <= $end; $i++){// run through the array of prices from the current level to the desired level
$total += $array[i];// add that cost to the total
}
// $total is the total amount
?>
Any idea how I can combine this with ZenCart to accomplish my goal?