Help with dropdown list, price generator! Urgent!

[code]

Quantity in Grams Price Generator: Total:
1 3 6 9 12 15 18 21 24 27 30 <?php $qty = $_REQUEST['quantity']; echo "$qty"; ?>
<?php $qty = $_REQUEST['quantity']; $grams[0]="15.00"; // 1 gram 15 $grams[1]="30.00"; // 3 gram 10 $grams[2]="60.00"; // 6 gram 10 $grams[3]="85.50"; // 9 gram 9.5 $grams[4]="108.00"; // 12 gram 9 $grams[5]="131.25"; // 15 gram 8.75 $grams[6]="153.00"; // 18 gram 8.50 $grams[7]="173.25"; // 21 gram 8.25 $grams[8]="192.00"; // 24 gram 8 $grams[9]="209.25"; // 27 gram 7.75 $grams[10]="225.00"; // 30 gram (1 oz) 7.50 ?> [/code]

[php]

Quantity in Grams Price Generator: Total:
1 3 6 9 12 15 18 21 24 27 30 <?php $qty = $_REQUEST['quantity']; echo $qty; ?>
<?php $qty = $_REQUEST['quantity']; $grams[0]="15.00"; // 1 gram 15 $grams[1]="30.00"; // 3 gram 10 $grams[2]="60.00"; // 6 gram 10 $grams[3]="85.50"; // 9 gram 9.5 $grams[4]="108.00"; // 12 gram 9 $grams[5]="131.25"; // 15 gram 8.75 $grams[6]="153.00"; // 18 gram 8.50 $grams[7]="173.25"; // 21 gram 8.25 $grams[8]="192.00"; // 24 gram 8 $grams[9]="209.25"; // 27 gram 7.75 $grams[10]="225.00"; // 30 gram (1 oz) 7.50 ?> [/php]

You need to include the submit button inside tag, not outside it.

Sponsor our Newsletter | Privacy Policy | Terms of Service