Witam mam taki problem, że zaktualizowałem wersje php na najnowsza, a kod był pisany na wersji 5.2, teraz kod nie chce działać. Wywala mi błędy w pierwszej linijce
if($_GET['ca'] > 0 && $_GET['ca'] <= 6){
$defaultRemoteRepair = 6;
$defaultCustomerVisit = 1;
if($_POST['remoteRepair'] == '' && $_POST['customerVisit'] == ''){
$totalCost = round($totalPrice['1-6'] * $increase);
} elseif ($_POST['remoteRepair'] <= $defaultRemoteRepair && $_POST['customerVisit'] <= $defaultCustomerVisit){
$totalCost = round($totalPrice['1-6'] * $increase);
} elseif (($_POST['remoteRepair'] == '' || $_POST['remoteRepair'] <= $defaultRemoteRepair) && $_POST['customerVisit'] > $defaultCustomerVisit){
$totalCost = round(($totalPrice['1-6'] + ($_POST['customerVisit']- $defaultCustomerVisit) * $priceList['w0'] + ($_POST['customerVisit']-1) * $priceList['w1'] * 0.5) * $increase);
} elseif ($_POST['remoteRepair'] > $defaultRemoteRepair && ($_POST['customerVisit'] == '' || $_POST['customerVisit'] <= $defaultCustomerVisit)){
$totalCost = round(($totalPrice['1-6'] + ($_POST['remoteRepair']- $defaultRemoteRepair) * ($priceList['w1'] / 3)) * $increase);
} elseif ($_POST['remoteRepair'] > $defaultRemoteRepair && $_POST['customerVisit'] > $defaultCustomerVisit){
$totalCost = round(($totalPrice['1-6'] + ($_POST['remoteRepair']- $defaultRemoteRepair) * ($priceList['w1'] / 3) + ($_POST['customerVisit']-1) * $priceList['w0']
+ ($_POST['customerVisit']- $defaultCustomerVisit) * $priceList['w1'] * 0.5) * $increase);
}
}
<table>
<tbody>
<tr>
<td width="700px">
<form action="wycena.php" method="GET">
<label>
<h2><strong>KROK 1:</strong> Podaj łączną ilość komputerów i serwerów w Twojej firmie:
</td>
<td>
<input type="text" name="ca" size="20px" value = "<?php echo $_GET['ca'] ?>"> <input type="submit" value="Przelicz"></h2></label></form>
</td>
</tr>
</tbody>
</table>
<br>
<?php
if ($_GET['ca'] > 34){
echo '<h4>OBSŁUGA POWYŻEJ 35 KOMPUTERÓW <br>WYMAGA INDYWIDUALNEJ WYCENY.</h4><br />';
echo '<h4>Zadzwoń! Tel. 000 000 000</h4>';
mail($to, $subject, $message, $headers, '-f test@test.pl');
}
elseif ($_GET['ca'] > 0 && $_GET['ca'] <= 35) {
echo '