Witam robię sklep no i mam problemik działa mi normalnie w dokumencie
echo
lecz deklaracje przykładowo
.$kwota_bagaznik.
nie działa, zamiast wyświetlić liczbę wyświetla górną deklarację słownie, kto mi zechce pomóc?
Poniżej kod z pliku kalkulator.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Language" content="pl">
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1250">
<title>BMW WorkShop - Toby Addamo</title>
<style type="text/css">
div#container
{
width: 1662px;
position: relative;
margin-top: 0px;
margin-left: auto;
margin-right: auto;
text-align: left;
}
body
{
text-align: center;
margin: 0;
background-color: #FFFFFF;
color: #000000;
}
</style>
<style type="text/css">
a
{
color: #C8D7EB;
text-decoration: underline;
}
a:visited
{
color: #C8D7EB;
}
a:active
{
color: #C8D7EB;
}
a:hover
{
color: #376BAD;
text-decoration: underline;
}
</style>
<style type="text/css">
#Image1
{
border: 0px #000000 solid;
}
#Image2
{
border: 0px #000000 solid;
}
#Image3
{
border: 0px #000000 solid;
}
#Image4
{
border: 0px #000000 solid;
}
#Image5
{
border: 0px #000000 solid;
}
#wb_Text1
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
}
#wb_Text1 div
{
text-align: left;
}
#wb_Text2
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
}
#wb_Text2 div
{
text-align: left;
}
#wb_Text3
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
}
#wb_Text3 div
{
text-align: left;
}
#wb_Text4
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
}
#wb_Text4 div
{
text-align: left;
}
</style>
</head>
<body>
<div id="container">
<div id="wb_Shape1" style="position:absolute;left:0px;top:0px;width:1265px;height:956px;z-index:0;">
<img src="images/img0011.gif" id="Shape1" alt="" style="border-width:0;width:1265px;height:956px;"></div>
<div id="wb_Image1" style="position:absolute;left:0px;top:0px;width:329px;height:306px;z-index:1;">
<img src="images/BMW.png" id="Image1" alt="" border="0" style="width:329px;height:306px;"></div>
<div id="wb_Image2" style="position:absolute;left:328px;top:234px;width:128px;height:128px;z-index:2;">
<img src="images/img0012.png" id="Image2" alt="" border="0" style="width:128px;height:128px;"></div>
<div id="wb_Image3" style="position:absolute;left:476px;top:234px;width:128px;height:128px;z-index:3;">
<img src="images/img0013.png" id="Image3" alt="" border="0" style="width:128px;height:128px;"></div>
<div id="wb_Image4" style="position:absolute;left:626px;top:234px;width:128px;height:128px;z-index:4;">
<img src="images/img0014.png" id="Image4" alt="" border="0" style="width:128px;height:128px;"></div>
<div id="wb_Image5" style="position:absolute;left:777px;top:234px;width:128px;height:128px;z-index:5;">
<img src="images/img0015.png" id="Image5" alt="" border="0" style="width:128px;height:128px;"></div>
<div id="wb_Text1" style="position:absolute;left:362px;top:369px;width:60px;height:29px;z-index:6;">
<span style="color:#0066FF;font-family:Impact;font-size:24px;">HOME</span></div>
<div id="wb_Text2" style="position:absolute;left:503px;top:367px;width:74px;height:29px;z-index:7;">
<span style="color:#0066FF;font-family:Impact;font-size:24px;">CENNIK</span></div>
<div id="wb_Text3" style="position:absolute;left:798px;top:368px;width:90px;height:29px;z-index:8;">
<span style="color:#0066FF;font-family:Impact;font-size:24px;">KONTAKT</span></div>
<div id="wb_Text4" style="position:absolute;left:633px;top:368px;width:124px;height:29px;z-index:9;">
<span style="color:#0066FF;font-family:Impact;font-size:24px;">KALKULATOR</span></div>
</div>
<br />
<br />
<br />
<div id="php1" style="position:absolute;left:344px;top:440px;width:534px;height:475px;z-index:10">
<center>
<form action="zamowienie.php" method="post">
<font color="007bff"><b>Kupnno oraz montaż bagażnika:</b></font> <font color="ff0000"><b>(( Ilość ))</b></font> <input type="text"
name="bagaznik" size=3 maxsize=3 /><br />
<form action="zamowienie.php" method="post">
<font color="007bff"><b>Kupnno oraz montaż drzwi:</b></font> <font color="ff0000"><b>(( Ilość ))</b></font> <input type="text"
name="drzwi" size=3 maxsize=3 /><br />
<form action="zamowienie.php" method="post">
<font color="007bff"><b>Kupnno oraz montaż maski:</b></font> <font color="ff0000"><b>(( Ilość ))</b></font> <input type="text"
name="maska" size=3 maxsize=3 /><br />
<form action="zamowienie.php" method="post">
<font color="007bff"><b>Kupnno oraz montaż reflektora:</b></font> <font color="ff0000"><b>(( Ilość))</b></font> <input type="text"
name="reflektor" size=3 maxsize=3 /><br />
<form action="zamowienie.php" method="post">
<font color="007bff"><b>Kupnno oraz montaż zderzaka:</b></font> <font color="ff0000"><b>(( Ilość))</b></font> <input type="text"
name="zderzak" size=3 maxsize=3 /><br />
<br />
<br />
<font color="ffffff"><b>[[ Jeżeli chodzi o dodatki do pojazdów oraz tuning typu felgi, ustalamy prywatnie z Prezesem!]]</b></font>
<br />
<input type="submit" value="złóż zamówienie" />
</center>
</div>
</body>
</html>
A tutaj kod z dokumentu, gdzie powinny wyświetlić się liczny gotowe, czyli zamowienie.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<?php
define("BAGAZNIK", 75);
define("DRZWI", 98);
define("MASKA", 65);
define("REFLEKTOR", 14);
define("ZDERZAK", 50);
$ile_bagaznik = $_POST['bagaznik'];
$kwota_bagaznik = BAGAZNIK*$ile_zbagaznik;
$ile_drzwi = $_POST['drzwi'];
$kwota_drzwi = DRZWI*$ile_drzwi;
$ile_maska = $_POST['maska'];
$kwota_maska = maska*$ile_maska;
$ile_reflektor = $_POST['reflektor'];
$kwota_reflektor = reflektor*$ile_reflektor;
$ile_zderzak = $_POST['zderzak'];
$kwota_zderzak = zderzak*$ile_zderzak;
//Koszt całych zakupów - działania
$calkowity_koszt = $kwota_bagaznik+$kwota_drzwi+$kwota_maska+$kwota_reflektor+$kwota_zderzak;
?>
<html>
<head>
<meta http-equiv="Content-Language" content="pl">
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1250">
<title>BMW WorkShop - Toby Addamo</title>
<style type="text/css">
div#container
{
width: 1662px;
position: relative;
margin-top: 0px;
margin-left: auto;
margin-right: auto;
text-align: left;
}
body
{
text-align: center;
margin: 0;
background-color: #FFFFFF;
color: #000000;
}
</style>
<style type="text/css">
a
{
color: #C8D7EB;
text-decoration: underline;
}
a:visited
{
color: #C8D7EB;
}
a:active
{
color: #C8D7EB;
}
a:hover
{
color: #376BAD;
text-decoration: underline;
}
</style>
<style type="text/css">
#Image1
{
border: 0px #000000 solid;
}
#Image2
{
border: 0px #000000 solid;
}
#Image3
{
border: 0px #000000 solid;
}
#Image4
{
border: 0px #000000 solid;
}
#Image5
{
border: 0px #000000 solid;
}
#wb_Text1
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
}
#wb_Text1 div
{
text-align: left;
}
#wb_Text2
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
}
#wb_Text2 div
{
text-align: left;
}
#wb_Text3
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
}
#wb_Text3 div
{
text-align: left;
}
#wb_Text4
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
}
#wb_Text4 div
{
text-align: left;
}
</style>
</head>
<body>
<div id="container">
<div id="wb_Shape1" style="position:absolute;left:0px;top:0px;width:1265px;height:956px;z-index:0;">
<img src="images/img0011.gif" id="Shape1" alt="" style="border-width:0;width:1265px;height:956px;"></div>
<div id="wb_Image1" style="position:absolute;left:0px;top:0px;width:329px;height:306px;z-index:1;">
<img src="images/BMW.png" id="Image1" alt="" border="0" style="width:329px;height:306px;"></div>
<div id="wb_Image2" style="position:absolute;left:328px;top:234px;width:128px;height:128px;z-index:2;">
<img src="images/img0012.png" id="Image2" alt="" border="0" style="width:128px;height:128px;"></div>
<div id="wb_Image3" style="position:absolute;left:476px;top:234px;width:128px;height:128px;z-index:3;">
<img src="images/img0013.png" id="Image3" alt="" border="0" style="width:128px;height:128px;"></div>
<div id="wb_Image4" style="position:absolute;left:626px;top:234px;width:128px;height:128px;z-index:4;">
<img src="images/img0014.png" id="Image4" alt="" border="0" style="width:128px;height:128px;"></div>
<div id="wb_Image5" style="position:absolute;left:777px;top:234px;width:128px;height:128px;z-index:5;">
<img src="images/img0015.png" id="Image5" alt="" border="0" style="width:128px;height:128px;"></div>
<div id="wb_Text1" style="position:absolute;left:362px;top:369px;width:60px;height:29px;z-index:6;">
<span style="color:#0066FF;font-family:Impact;font-size:24px;">HOME</span></div>
<div id="wb_Text2" style="position:absolute;left:503px;top:367px;width:74px;height:29px;z-index:7;">
<span style="color:#0066FF;font-family:Impact;font-size:24px;">CENNIK</span></div>
<div id="wb_Text3" style="position:absolute;left:798px;top:368px;width:90px;height:29px;z-index:8;">
<span style="color:#0066FF;font-family:Impact;font-size:24px;">KONTAKT</span></div>
<div id="wb_Text4" style="position:absolute;left:633px;top:368px;width:124px;height:29px;z-index:9;">
<span style="color:#0066FF;font-family:Impact;font-size:24px;">KALKULATOR</span></div>
</div>
<br />
<br />
<br />
<div id="php" style="position:absolute;left:344px;top:440px;width:534px;height:475px;z-index:10">
<?php
echo "<b>Cena za ilość zamówionych bagażników: </b> ".$kwota_bagaznik."<br/>";
echo "<b>Cena za ilość zamówionych drzwi: </b>" .$kwota_drzwi."<br/>";
echo "<b>Cena za ilość zamówionych masek samochodowych: </b>" .$kwota_maska."<br/>";
echo "<b>Cena za ilość zamówionych reflektorów: </b>" .$kwota_reflektor."<br/>";
echo "<b>Cena za ilość zamówionych zderzaków: </b>" .$kwota_zderzak."<br/><br/>";
echo "<b>Koszt za całe zakupy wynosi: </b>" .$calkowity_koszt."<br/>";
?>
</div>
</body>
</html>
W czym problem?

Temat jest zamknięty
