<?php //tworze krotkie nazwy zmiennych $iloscopon = $_POST['iloscopon']; $iloscoleju = $_POST['iloscoleju']; $iloscswiec = $_POST['iloscswiec']; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link href="external.css" rel="stylesheet" type="text/css" /> </head> <!-- Body --> <body> <div id="wraper"> <div id="content"> </div> <div id="order">
<?php echo ' '; echo 'Order details: '; '; // mozna przypisac to rowniez tak echo \"$iloscopon tires \"; styl zalezy od twoich preferencji. '; '; $ilosc =0; $ilosc = $iloscopon + $iloscoleju + $iloscswiec; '; $wartosc = 0.00; $wartosc = $iloscopon * CENAOPON + $iloscoleju * CENAOLEJU + $iloscswiec * CENASWIEC; '; // linia nr 59 $stawkavat = 0.19: // tax 19% $wartosc = $wartosc * (1 + $stawkavat); '; ?>
Nie wiem dlaczego dostaje syntax error, unexpected T_DNUMBER w 25 lini
do tego mam plik html'a
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link href="external.css" rel="stylesheet" type="text/css" /> </head> <!-- Body --> <body> <div id="product"> </div> <div id="tires"> </div> <div id="oil"> </div> <div id="sparks"> </div> <div id="submit"> </div> </body> </html>
</br ></br ></br ></br ></br ></br ></br >