PHP/JavaScript Experts/Developers HELP !!!

February 22, 2015 700 views

Hello,

I have a problem with the code for calculate price.
Here is a link: http://client.dizajnarena.com/order/game/1/cs

Example: if i chose 30 slots (broj slotova) and than chose 28 slots price will be 8.5 €.
and if i chose advanced payment (period placanja) 1 month (1 mjesec) price will be same 8.5 €,but if i chose 2 months (2 mjeseca) price will be same again,if i chose 3 months (3 mjeseca) price is same.

Only 12,24 and 32 slots work whitout this bag.

Sorry for my very very bad engish !

Here is code:

function calculate_price(){
    slots       = $("#slots").val();
    period      = $("#period").val();
    ads         = $("#ads").val();
    webhost     = $("#webhosting").val();

    if(period=='1_month'){
        if(slots=='6'){total_price = '<?php echo $game_6_slots; ?>';}
        if(slots=='8'){total_price = '<?php echo $game_8_slots; ?>';}
        if(slots=='10'){total_price = '<?php echo $game_10_slots; ?>';}
        if(slots=='12'){total_price = '<?php echo $game_12_slots; ?>';}
        if(slots=='14'){total_price = '<?php echo $game_14_slots; ?>';}
        if(slots=='16'){total_price = '<?php echo $game_16_slots; ?>';}
        if(slots=='18'){total_price = '<?php echo $game_18_slots; ?>';}
        if(slots=='20'){total_price = '<?php echo $game_20_slots; ?>';}
        if(slots=='22'){total_price = '<?php echo $game_22_slots; ?>';}
        if(slots=='24'){total_price = '<?php echo $game_24_slots; ?>';}
        if(slots=='26'){total_price = '<?php echo $game_26_slots; ?>';}
        if(slots=='28'){total_price = '<?php echo $game_28_slots; ?>';}
        if(slots=='30'){total_price = '<?php echo $game_30_slots; ?>';}
        if(slots=='32'){total_price = '<?php echo $game_32_slots; ?>';}
        if(slots=='40'){total_price = '<?php echo $game_40_slots; ?>';}
        if(slots=='60'){total_price = '<?php echo $game_60_slots; ?>';}
        if(slots=='80'){total_price = '<?php echo $game_80_slots; ?>';}
        if(slots=='100'){total_price = '<?php echo $game_100_slots; ?>';}
        if(slots=='120'){total_price = '<?php echo $game_120_slots; ?>';}
        if(slots=='140'){total_price = '<?php echo $game_140_slots; ?>';}
        if(slots=='160'){total_price = '<?php echo $game_160_slots; ?>';}
        if(slots=='180'){total_price = '<?php echo $game_180_slots; ?>';}
        if(slots=='200'){total_price = '<?php echo $game_200_slots; ?>';}
    }
    if(period=='2_months'){
        if(slots=='6'){total_price = '<?php echo ($game_6_slots * 2) - $game_6_slots_10_percent; ?>';}
        if(slots=='8'){total_price = '<?php echo ($game_8_slots * 2) - $game_8_slots_10_percent; ?>';}
        if(slots=='10'){total_price = '<?php echo ($game_10_slots * 2) - $game_10_slots_10_percent; ?>';}
        if(slots=='12'){total_price = '<?php echo ($game_12_slots * 2) - $game_12_slots_10_percent; ?>';}
        if(slots=='14'){total_price = '<?php echo ($game_14_slots * 2) - $game_14_slots_10_percent; ?>';}
        if(slots=='16'){total_price = '<?php echo ($game_16_slots * 2) - $game_16_slots_10_percent; ?>';}
        if(slots=='18'){total_price = '<?php echo ($game_18_slots * 2) - $game_18_slots_10_percent; ?>';}
        if(slots=='20'){total_price = '<?php echo ($game_20_slots * 2) - $game_20_slots_10_percent; ?>';}
        if(slots=='22'){total_price = '<?php echo ($game_22_slots * 2) - $game_22_slots_10_percent; ?>';}
        if(slots=='24'){total_price = '<?php echo ($game_24_slots * 2) - $game_24_slots_10_percent; ?>';}
        if(slots=='32'){total_price = '<?php echo ($game_32_slots * 2) - $game_32_slots_10_percent; ?>';}
        if(slots=='40'){total_price = '<?php echo ($game_40_slots * 2) - $game_40_slots_10_percent; ?>';}
        if(slots=='60'){total_price = '<?php echo ($game_60_slots * 2) - $game_60_slots_10_percent; ?>';}
        if(slots=='80'){total_price = '<?php echo ($game_80_slots * 2) - $game_80_slots_10_percent; ?>';}
        if(slots=='100'){total_price = '<?php echo ($game_100_slots * 2) - $game_100_slots_10_percent; ?>';}
        if(slots=='120'){total_price = '<?php echo ($game_120_slots * 2) - $game_120_slots_10_percent; ?>';}
        if(slots=='140'){total_price = '<?php echo ($game_140_slots * 2) - $game_140_slots_10_percent; ?>';}
        if(slots=='160'){total_price = '<?php echo ($game_160_slots * 2) - $game_160_slots_10_percent; ?>';}
        if(slots=='180'){total_price = '<?php echo ($game_180_slots * 2) - $game_180_slots_10_percent; ?>';}
        if(slots=='200'){total_price = '<?php echo ($game_200_slots * 2) - $game_200_slots_10_percent; ?>';}
    }
    if(period=='3_months'){
        if(slots=='6'){total_price = '<?php echo ($game_6_slots * 3) - $game_6_slots_15_percent; ?>';}
        if(slots=='8'){total_price = '<?php echo ($game_8_slots * 3) - $game_8_slots_15_percent; ?>';}
        if(slots=='10'){total_price = '<?php echo ($game_10_slots * 3) - $game_10_slots_15_percent; ?>';}
        if(slots=='12'){total_price = '<?php echo ($game_12_slots * 3) - $game_12_slots_15_percent; ?>';}
        if(slots=='14'){total_price = '<?php echo ($game_14_slots * 2) - $game_14_slots_15_percent; ?>';}
        if(slots=='16'){total_price = '<?php echo ($game_16_slots * 3) - $game_16_slots_15_percent; ?>';}
        if(slots=='18'){total_price = '<?php echo ($game_18_slots * 3) - $game_18_slots_15_percent; ?>';}
        if(slots=='20'){total_price = '<?php echo ($game_20_slots * 3) - $game_20_slots_15_percent; ?>';}
        if(slots=='22'){total_price = '<?php echo ($game_22_slots * 3) - $game_22_slots_15_percent; ?>';}
        if(slots=='24'){total_price = '<?php echo ($game_24_slots * 3) - $game_24_slots_15_percent; ?>';}
        if(slots=='32'){total_price = '<?php echo ($game_32_slots * 3) - $game_32_slots_15_percent; ?>';}
        if(slots=='40'){total_price = '<?php echo ($game_40_slots * 3) - $game_40_slots_15_percent; ?>';}
        if(slots=='60'){total_price = '<?php echo ($game_60_slots * 3) - $game_60_slots_15_percent; ?>';}
        if(slots=='80'){total_price = '<?php echo ($game_80_slots * 3) - $game_80_slots_15_percent; ?>';}
        if(slots=='100'){total_price = '<?php echo ($game_100_slots * 3) - $game_100_slots_15_percent; ?>';}
        if(slots=='120'){total_price = '<?php echo ($game_120_slots * 3) - $game_120_slots_15_percent; ?>';}
        if(slots=='140'){total_price = '<?php echo ($game_140_slots * 3) - $game_140_slots_15_percent; ?>';}
        if(slots=='160'){total_price = '<?php echo ($game_160_slots * 3) - $game_160_slots_15_percent; ?>';}
        if(slots=='180'){total_price = '<?php echo ($game_180_slots * 3) - $game_180_slots_15_percent; ?>';}
        if(slots=='200'){total_price = '<?php echo ($game_200_slots * 3) - $game_200_slots_15_percent; ?>';}
    }
    if(ads=='no'){
        total_price = Number(total_price) + 1;
        total_price = total_price.toFixed(1);
    }
    if(webhost=='yes'){
        total_price = Number(total_price) + 1;
        total_price = total_price.toFixed(1);
    }

    $('#total').hide();
    $('#total').val(total_price + '€');
    $('#total').fadeIn('slow');

}
window.onload = calculate_price();
</script>

And other file:

<?php
if(!isset($access_security)){die("direktan pristup zabranjen");}

$game = mysql_real_escape_string($_GET['game']);
$game_query = mysql_query("SELECT * FROM games_standard WHERE title_safe='$game'");
if(mysql_num_rows($game_query)==0){
    q7eb2a_redirect("/404");
} else {
    $game_row = mysql_fetch_assoc($game_query);
    $server_type = $_GET['type'];
    if(empty($server_type)){$server_type = 'lite';}
    $game_title         = $game_row['title'];
    $game_title_safe    = $game_row['title_safe'];
    $game_cover         = $game_row['cover'];
    if($server_type=='premium'){
        $game_6_slots   = $game_row['6_slots_premium'];
        $game_8_slots   = $game_row['8_slots_premium'];
        $game_10_slots  = $game_row['10_slots_premium'];
        $game_12_slots  = $game_row['12_slots_premium'];
        $game_14_slots  = $game_row['14_slots_premium'];
        $game_16_slots  = $game_row['16_slots_premium'];
        $game_18_slots  = $game_row['18_slots_premium'];
        $game_20_slots  = $game_row['20_slots_premium'];
        $game_22_slots  = $game_row['22_slots_premium'];
        $game_24_slots  = $game_row['24_slots_premium'];
        $game_26_slots  = $game_row['26_slots_premium'];
        $game_28_slots  = $game_row['28_slots_premium'];
        $game_30_slots  = $game_row['30_slots_premium'];
        $game_32_slots  = $game_row['32_slots_premium'];
        $game_40_slots  = $game_row['40_slots_premium'];
        $game_44_slots  = $game_row['44_slots_premium'];
        $game_50_slots  = $game_row['50_slots_premium'];
        $game_52_slots  = $game_row['52_slots_premium'];
        $game_60_slots  = $game_row['60_slots_premium'];
        $game_64_slots  = $game_row['64_slots_premium'];
        $game_80_slots  = $game_row['80_slots_premium'];
        $game_100_slots = $game_row['100_slots_premium'];
        $game_120_slots = $game_row['120_slots_premium'];
        $game_128_slots = $game_row['128_slots_premium'];
        $game_140_slots = $game_row['140_slots_premium'];
        $game_160_slots = $game_row['160_slots_premium'];
        $game_180_slots = $game_row['180_slots_premium'];
        $game_200_slots = $game_row['200_slots_premium'];
        $game_500_slots = $game_row['500_slots_premium'];
    } else {
        $game_6_slots   = $game_row['6_slots_lite'];
        $game_8_slots   = $game_row['8_slots_lite'];
        $game_10_slots  = $game_row['10_slots_lite'];
        $game_12_slots  = $game_row['12_slots_lite'];
        $game_14_slots  = $game_row['14_slots_lite'];
        $game_16_slots  = $game_row['16_slots_lite'];
        $game_18_slots  = $game_row['18_slots_lite'];
        $game_20_slots  = $game_row['20_slots_lite'];
        $game_22_slots  = $game_row['22_slots_lite'];
        $game_24_slots  = $game_row['24_slots_lite'];
        $game_26_slots  = $game_row['26_slots_lite'];
        $game_28_slots  = $game_row['28_slots_lite'];
        $game_30_slots  = $game_row['30_slots_lite'];
        $game_32_slots  = $game_row['32_slots_lite'];
        $game_40_slots  = $game_row['40_slots_lite'];
        $game_44_slots  = $game_row['44_slots_lite'];
        $game_50_slots  = $game_row['50_slots_lite'];
        $game_52_slots  = $game_row['52_slots_lite'];
        $game_60_slots  = $game_row['60_slots_lite'];
        $game_64_slots  = $game_row['64_slots_lite'];
        $game_80_slots  = $game_row['80_slots_lite'];
        $game_100_slots = $game_row['100_slots_lite'];
        $game_120_slots = $game_row['120_slots_lite'];
        $game_128_slots = $game_row['128_slots_lite'];
        $game_140_slots = $game_row['140_slots_lite'];
        $game_160_slots = $game_row['160_slots_lite'];
        $game_180_slots = $game_row['180_slots_lite'];
        $game_200_slots = $game_row['200_slots_lite'];
        $game_500_slots = $game_row['500_slots_lite'];

    }
    // 10 %
    $game_6_slots_10_percent = ($game_6_slots / 100) * 10;
    $game_8_slots_10_percent = ($game_8_slots / 100) * 10;
    $game_10_slots_10_percent = ($game_10_slots / 100) * 10;
    $game_12_slots_10_percent = ($game_12_slots / 100) * 10;
    $game_14_slots_10_percent = ($game_14_slots / 100) * 10;
    $game_16_slots_10_percent = ($game_16_slots / 100) * 10;
    $game_18_slots_10_percent = ($game_18_slots / 100) * 10;
    $game_20_slots_10_percent = ($game_20_slots / 100) * 10;
    $game_22_slots_10_percent = ($game_22_slots / 100) * 10;
    $game_24_slots_10_percent = ($game_24_slots / 100) * 10;
    $game_26_slots_10_percent = ($game_26_slots / 100) * 10;
    $game_28_slots_10_percent = ($game_28_slots / 100) * 10;
    $game_30_slots_10_percent = ($game_30_slots / 100) * 10;
    $game_32_slots_10_percent = ($game_32_slots / 100) * 10;
    $game_40_slots_10_percent = ($game_40_slots / 100) * 10;
    $game_44_slots_10_percent = ($game_44_slots / 100) * 10;
    $game_50_slots_10_percent = ($game_50_slots / 100) * 10;
    $game_52_slots_10_percent = ($game_52_slots / 100) * 10;
    $game_60_slots_10_percent = ($game_60_slots / 100) * 10;
    $game_64_slots_10_percent = ($game_64_slots / 100) * 10;
    $game_80_slots_10_percent = ($game_80_slots / 100) * 10;
    $game_100_slots_10_percent = ($game_100_slots / 100) * 10;
    $game_120_slots_10_percent = ($game_120_slots / 100) * 10;
    $game_128_slots_10_percent = ($game_128_slots / 100) * 10;
    $game_140_slots_10_percent = ($game_140_slots / 100) * 10;
    $game_160_slots_10_percent = ($game_160_slots / 100) * 10;
    $game_180_slots_10_percent = ($game_180_slots / 100) * 10;
    $game_200_slots_10_percent = ($game_200_slots / 100) * 10;
    $game_500_slots_10_percent = ($game_500_slots / 100) * 10;
    // 15 %
    $game_6_slots_15_percent = ($game_6_slots / 100) * 15;
    $game_8_slots_15_percent = ($game_8_slots / 100) * 15;
    $game_10_slots_15_percent = ($game_10_slots / 100) * 15;
    $game_12_slots_15_percent = ($game_12_slots / 100) * 15;
    $game_14_slots_15_percent = ($game_14_slots / 100) * 15;
    $game_16_slots_15_percent = ($game_16_slots / 100) * 15;
    $game_18_slots_15_percent = ($game_18_slots / 100) * 15;
    $game_20_slots_15_percent = ($game_20_slots / 100) * 15;
    $game_22_slots_15_percent = ($game_22_slots / 100) * 15;
    $game_24_slots_15_percent = ($game_24_slots / 100) * 15;
    $game_26_slots_15_percent = ($game_26_slots / 100) * 15;
    $game_28_slots_15_percent = ($game_28_slots / 100) * 15;
    $game_30_slots_15_percent = ($game_30_slots / 100) * 15;
    $game_32_slots_15_percent = ($game_32_slots / 100) * 15;
    $game_40_slots_15_percent = ($game_40_slots / 100) * 15;
    $game_44_slots_15_percent = ($game_44_slots / 100) * 15;
    $game_50_slots_15_percent = ($game_50_slots / 100) * 15;
    $game_52_slots_15_percent = ($game_52_slots / 100) * 15;
    $game_60_slots_15_percent = ($game_60_slots / 100) * 15;
    $game_64_slots_15_percent = ($game_64_slots / 100) * 15;
    $game_80_slots_15_percent = ($game_80_slots / 100) * 15;
    $game_100_slots_15_percent = ($game_100_slots / 100) * 15;
    $game_120_slots_15_percent = ($game_120_slots / 100) * 15;
    $game_128_slots_15_percent = ($game_128_slots / 100) * 15;
    $game_140_slots_15_percent = ($game_140_slots / 100) * 15;
    $game_160_slots_15_percent = ($game_160_slots / 100) * 15;
    $game_180_slots_15_percent = ($game_180_slots / 100) * 15;
    $game_200_slots_15_percent = ($game_200_slots / 100) * 15;
    $game_500_slots_15_percent = ($game_500_slots / 100) * 15;  





    $page_title = $game_title;


    $submit_game_order = $_POST['submit_game_order'];
    if($submit_game_order && logged()){
        $post_server_name       = mysql_real_escape_string($_POST['server_name']);
        $post_location          = mysql_real_escape_string($_POST['location']);
        if($post_location!='premium'){$post_location='lite';}
        $post_slots             = mysql_real_escape_string($_POST['slots']);
        $post_period            = mysql_real_escape_string($_POST['period']);
        $post_ads               = mysql_real_escape_string($_POST['ads']);
        $post_domain            = mysql_real_escape_string($_POST['domain']);
        $post_extension         = mysql_real_escape_string($_POST['extension']);
        $post_webhosting        = mysql_real_escape_string($_POST['webhosting']);
        $post_final_comment     = mysql_real_escape_string(stripslashes($_POST['final_comment']));  



        if($post_period=='1_month'){    
            if($post_slots=='6'){$post_total_price = $game_6_slots;}
            if($post_slots=='8'){$post_total_price = $game_8_slots;}
            if($post_slots=='10'){$post_total_price = $game_10_slots;}
            if($post_slots=='12'){$post_total_price = $game_12_slots;}
            if($post_slots=='14'){$post_total_price = $game_14_slots;}
            if($post_slots=='16'){$post_total_price = $game_16_slots;}
            if($post_slots=='18'){$post_total_price = $game_18_slots;}
            if($post_slots=='20'){$post_total_price = $game_20_slots;}
            if($post_slots=='22'){$post_total_price = $game_22_slots;}
            if($post_slots=='24'){$post_total_price = $game_24_slots;}
            if($post_slots=='26'){$post_total_price = $game_26_slots;}
            if($post_slots=='28'){$post_total_price = $game_28_slots;}
            if($post_slots=='30'){$post_total_price = $game_30_slots;}
            if($post_slots=='32'){$post_total_price = $game_32_slots;}
            if($post_slots=='40'){$post_total_price = $game_40_slots;}
            if($post_slots=='44'){$post_total_price = $game_44_slots;}
            if($post_slots=='50'){$post_total_price = $game_50_slots;}
            if($post_slots=='52'){$post_total_price = $game_52_slots;}
            if($post_slots=='60'){$post_total_price = $game_60_slots;}
            if($post_slots=='64'){$post_total_price = $game_64_slots;}
            if($post_slots=='80'){$post_total_price = $game_80_slots;}
            if($post_slots=='100'){$post_total_price = $game_100_slots;}
            if($post_slots=='120'){$post_total_price = $game_120_slots;}
            if($post_slots=='128'){$post_total_price = $game_128_slots;}
            if($post_slots=='140'){$post_total_price = $game_140_slots;}
            if($post_slots=='160'){$post_total_price = $game_160_slots;}
            if($post_slots=='180'){$post_total_price = $game_180_slots;}
            if($post_slots=='200'){$post_total_price = $game_200_slots;}
            if($post_slots=='500'){$post_total_price = $game_500_slots;}
        }
        if($post_period=='2_months'){
            if($post_slots=='6'){$post_total_price = ($game_6_slots * 2) - $game_6_slots_10_percent;}
            if($post_slots=='8'){$post_total_price = ($game_8_slots * 2) - $game_8_slots_10_percent;}
            if($post_slots=='10'){$post_total_price = ($game_10_slots * 2) - $game_10_slots_10_percent;}
            if($post_slots=='12'){$post_total_price = ($game_12_slots * 2) - $game_12_slots_10_percent;}
            if($post_slots=='14'){$post_total_price = ($game_14_slots * 2) - $game_14_slots_10_percent;}
            if($post_slots=='16'){$post_total_price = ($game_16_slots * 2) - $game_16_slots_10_percent;}
            if($post_slots=='18'){$post_total_price = ($game_18_slots * 2) - $game_18_slots_10_percent;}
            if($post_slots=='20'){$post_total_price = ($game_20_slots * 2) - $game_20_slots_10_percent;}
            if($post_slots=='22'){$post_total_price = ($game_22_slots * 2) - $game_22_slots_10_percent;}
            if($post_slots=='24'){$post_total_price = ($game_24_slots * 2) - $game_24_slots_10_percent;}
            if($post_slots=='26'){$post_total_price = ($game_26_slots * 2) - $game_26_slots_10_percent;}
            if($post_slots=='28'){$post_total_price = ($game_28_slots * 2) - $game_28_slots_10_percent;}
            if($post_slots=='30'){$post_total_price = ($game_30_slots * 2) - $game_30_slots_10_percent;}
            if($post_slots=='32'){$post_total_price = ($game_32_slots * 2) - $game_32_slots_10_percent;}
            if($post_slots=='40'){$post_total_price = ($game_40_slots * 2) - $game_40_slots_10_percent;}
            if($post_slots=='44'){$post_total_price = ($game_44_slots * 2) - $game_44_slots_10_percent;}
            if($post_slots=='50'){$post_total_price = ($game_50_slots * 2) - $game_50_slots_10_percent;}
            if($post_slots=='52'){$post_total_price = ($game_52_slots * 2) - $game_52_slots_10_percent;}
            if($post_slots=='60'){$post_total_price = ($game_60_slots * 2) - $game_60_slots_10_percent;}
            if($post_slots=='64'){$post_total_price = ($game_64_slots * 2) - $game_64_slots_10_percent;}
            if($post_slots=='80'){$post_total_price = ($game_80_slots * 2) - $game_80_slots_10_percent;}
            if($post_slots=='100'){$post_total_price = ($game_100_slots * 2) - $game_100_slots_10_percent;}
            if($post_slots=='120'){$post_total_price = ($game_120_slots * 2) - $game_120_slots_10_percent;}
            if($post_slots=='128'){$post_total_price = ($game_128_slots * 2) - $game_128_slots_10_percent;}
            if($post_slots=='140'){$post_total_price = ($game_140_slots * 2) - $game_140_slots_10_percent;}
            if($post_slots=='160'){$post_total_price = ($game_160_slots * 2) - $game_160_slots_10_percent;}
            if($post_slots=='180'){$post_total_price = ($game_180_slots * 2) - $game_180_slots_10_percent;}
            if($post_slots=='200'){$post_total_price = ($game_200_slots * 2) - $game_200_slots_10_percent;}
            if($post_slots=='500'){$post_total_price = ($game_500_slots * 2) - $game_500_slots_10_percent;}
        }
        if($post_period=='3_months'){
            if($post_slots=='6'){$post_total_price = ($game_6_slots * 3) - $game_6_slots_15_percent;}
            if($post_slots=='8'){$post_total_price = ($game_8_slots * 3) - $game_8_slots_15_percent;}
            if($post_slots=='10'){$post_total_price = ($game_10_slots * 3) - $game_10_slots_15_percent;}
            if($post_slots=='12'){$post_total_price = ($game_12_slots * 3) - $game_12_slots_15_percent;}
            if($post_slots=='14'){$post_total_price = ($game_14_slots * 3) - $game_14_slots_15_percent;}
            if($post_slots=='16'){$post_total_price = ($game_16_slots * 3) - $game_16_slots_15_percent;}
            if($post_slots=='18'){$post_total_price = ($game_18_slots * 3) - $game_18_slots_15_percent;}
            if($post_slots=='20'){$post_total_price = ($game_20_slots * 3) - $game_20_slots_15_percent;}
            if($post_slots=='22'){$post_total_price = ($game_22_slots * 3) - $game_22_slots_15_percent;}
            if($post_slots=='24'){$post_total_price = ($game_24_slots * 3) - $game_24_slots_15_percent;}
            if($post_slots=='26'){$post_total_price = ($game_26_slots * 3) - $game_26_slots_15_percent;}
            if($post_slots=='28'){$post_total_price = ($game_28_slots * 3) - $game_28_slots_15_percent;}
            if($post_slots=='30'){$post_total_price = ($game_30_slots * 3) - $game_30_slots_15_percent;}
            if($post_slots=='32'){$post_total_price = ($game_32_slots * 3) - $game_32_slots_15_percent;}
            if($post_slots=='40'){$post_total_price = ($game_40_slots * 3) - $game_40_slots_15_percent;}
            if($post_slots=='44'){$post_total_price = ($game_44_slots * 3) - $game_44_slots_15_percent;}
            if($post_slots=='50'){$post_total_price = ($game_50_slots * 3) - $game_50_slots_15_percent;}
            if($post_slots=='52'){$post_total_price = ($game_52_slots * 3) - $game_52_slots_15_percent;}
            if($post_slots=='60'){$post_total_price = ($game_60_slots * 3) - $game_60_slots_15_percent;}
            if($post_slots=='64'){$post_total_price = ($game_64_slots * 3) - $game_64_slots_15_percent;}
            if($post_slots=='80'){$post_total_price = ($game_80_slots * 3) - $game_80_slots_15_percent;}
        if($post_slots=='100'){$post_total_price = ($game_100_slots * 3) - $game_100_slots_15_percent;}
        if($post_slots=='120'){$post_total_price = ($game_120_slots * 3) - $game_120_slots_15_percent;}
        if($post_slots=='128'){$post_total_price = ($game_128_slots * 3) - $game_128_slots_15_percent;}
        if($post_slots=='140'){$post_total_price = ($game_140_slots * 3) - $game_140_slots_15_percent;}
        if($post_slots=='160'){$post_total_price = ($game_160_slots * 3) - $game_160_slots_15_percent;}
        if($post_slots=='180'){$post_total_price = ($game_180_slots * 3) - $game_180_slots_15_percent;}
        if($post_slots=='200'){$post_total_price = ($game_200_slots * 3) - $game_200_slots_15_percent;}
        if($post_slots=='500'){$post_total_price = ($game_500_slots * 3) - $game_500_slots_15_percent;}
        }
        if($post_ads=='no'){$post_total_price = $post_total_price + 1;}
        if($post_webhosting=='yes'){$post_total_price = $post_total_price + 1;}

Be the first one to answer this question.