Hello Everyone,
I’m a newbie trying to improve my script below.
The script works fine but I would like to add the 3 radio buttons computations enhancements
Ergo, if a user chooses 'Matte Paper" a 10% would be added to the Price Quote result.
If a user chooses ’ Gloss Paper, a 10% would be added to the Price Quote result.
If a user chooses 'Canvas" , a 20 % would be added to the Price Quote result.
If someone could assist with the math or post me a helpful link it would be greatly appreciated.
Thank you.
Paul from Melbourne, Australia.
[php]
1. Enter the size (100w.x180h. cm) you want your picture printed: Width Height
2. Choose the printing material for your picture: Matte Paper Gloss Paper Canvas
3. Submit your info for our Price Quote below : or:
5. Our Price Quote to print your artwork sized: <?php $width = $_POST['width']; /* if artwork wider than 101 cm no quote, exits*/ if ($width >=101) {echo "Error!"; exit ;} $height = $_POST['height']; /* if artwork higher than 181 cm no quote, script exits */ if ($height >=181) {echo "Error!"; exit ;} $measurement = $_POST['measurement']; $material = $_POST['material']; $result = $width * $height; echo " $width x $height $material is: "; echo "$".number_format($result,2). "" ; ?>
[/php]