Hello, i'm new in PHP so i dont know much about it so ill need a little help with this "eazy" problem. I need to calculate the total price of the items on every "checkbox" check. here is my code:
<?php
$mikrobranova = 3999;
$smasina = 4999;
$amasina = 9999;
$sol = 60;
$prasok = 200;
$salama = 150;
$banani = 80;
$vegeta = 100;
$zejtin = 70;
$paketce = 199;
if ($_GET['prasok'] == 'prasok') {
echo $prasok;
} else if($_GET['salama'] == 'salama') {
echo $salama;
} else if($_GET['banani'] == 'babani') {
echo $banani;
} else if($_GET['sol'] == 'sol') {
echo $sol;
} else if($_GET['vegeta'] == 'vegeta') {
echo $vegeta;
} else if($_GET['zejtin'] == 'zejtin') {
echo $zejtin;
} else if($_GET['paketce'] == 'paketce') {
echo $paketce;
} else if($_GET['amasina'] == 'amasina') {
echo $amasina;
} else if($_GET['smasina'] == 'smasina') {
echo $smasina;
} else {
echo '0';
}
?>
Thank you for the assisteding. :)