Haintz
2002-01-10, 16:09:21
Wer kann mir helfen?? Wieso gibt dieses Script keine Nullen aus bei den letzten 2 Artikeln?? Bitte ich brauche Hilfe!!
<?php
// $na = "$vname";
// $an = "$empfaenger";
// $betreff = "$betr";
// $nachricht = "$text\n";
$header = "$mail";
// Preise
$pkugel = $mkugel * 7.62;
$pplaner = $mplaner * 40.39;
$phemd = $mhemd * 28.12;
$phandy2 = $mhandy2 * 40.39;
$capy = $mcapy * 19.99;
$pin = $mpin * 19.99;
$pges = $pkugel + $pplaner + $phemd + $mhandy2 + capy + $pin;
$man ="";
#$man ="";
$betreff = "Bestellung";
$bFarbe = "$Farbe";
$manrede = "Anrede: $Anrede\n";
$mname = "Name: $Vorname $Name\n";
$mstr = "Strasse: $StrasseNr\n";
$mplzort = "PLZ/Ort: $Plz $Ort\n";
$mtele = "Telefon: $Telefon\n";
$mfax = "Fax: $Fax\n";
$mmobil = "Mobil: $mobil\n";
$mmail = "eMail: $mail\n";
$mline = "----------------------\n\n";
$bkugel = "001 Kugelschreiber 7.62 € $mkugel $pkugel €\n" ;
$bplaner = "002 Terminplaner 40.39 € $mplaner $pplaner €\n";
$bhemd = "004 Hemd 28.12 € $mhemd $phemd € $groesse $Farbe\n";
$bhandy2 = "005 Alcatel One 40.39 € $mhandy2 $phandy2 €\n";
$bcapy = "006 Baseball Capy 10.20 € $mcapy $capy €\n";
$bpin = "007 Pin 2.50 € $mpin $mpin €\n";
$bges = "\t\tgesamt: \t $pges €\n";
$bestellung = "Bestellung\n$mline$bkugel$bplaner$bhemd$bhandy2$bcapy$bpin$bges";
mail("$man", "$betreff", "$manrede$mname$mstr$mplzort$mtele$mfax$mmobil$mmail$mline$bestellung","From:
$header");
?>
<html>
<head>
<link rel=stylesheet type="text/css" href="../css/formate.css">
</head>
<body bgcolor="#FFFFFF" text="#000000" background="../images/gw2.gif" >
<table border="0" cellspadding="0" cellspacing="0" width="90%" align="center">
<tr>
<td>
<table border="0" cellspadding="0" cellspacing="0">
<tr><b>
<td>Artikel-Nr.</td>
<td>Art.-Bez.</td>
<td>Preis</td>
<td>Menge</td>
<td>Ges.-Preis</td>
<td>Grösse</td>
<td>Farbe</td>
</b>
</tr>
<tr>
<td>001</td>
<td>Kugelschreiber</td>
<td>14.90 €</td>
<td><? echo "$mkugel"; ?></td>
<td><? echo "$pkugel €"; ?></td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
</tr>
<tr>
<td>002</td>
<td>Terminplaner</td>
<td>79.00 €</td>
<td><? echo "$mplaner"; ?></td>
<td><? echo "$pplaner €"; ?></td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
</tr>
<tr>
<td>004</td>
<td>Hemd mit Logo</td>
<td>55.00 €</td>
<td><? echo "$mhemd"; ?></td>
<td><? echo "$phemd €"; ?></td>
<td><? echo "$groesse"; ?></td>
<td><? echo "$Farbe"; ?></td>
</tr>
<tr>
<td>005</td>
<td>Alcatel One Touch</td>
<td>79.00 €</td>
<td><? echo "$mhandy2"; ?></td>
<td><? echo "$phandy2 €"; ?></td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
</tr>
<tr>
<td>006</td>
<td>Baseball Cap</td>
<td>19.99 €</td>
<td><? echo "$mcapy"; ?></td>
<td><? echo "$capy €"; ?></td>
<td><img src="../images/clear.gif" width="1"
</tr>
<tr>
<td>007</td>
<td>Pin-Schlüsselanhänger</td>
<td>19.99 €</td>
<td><? echo "$mpin"; ?></td>
<td><? echo "$pin €"; ?></td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
</tr>
<tr>
<td><img src="../images/clear.gif" width="1" height="1" </td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
<td><? echo "$pges €"; ?></td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<p align=center><b>Die Ihre Mail wurde abgeschickt.<br> </b></p>
<p align=center><a href='../main.htm' target="main"> zurück</a><br> </p>
</body>
</html>
<?php
// $na = "$vname";
// $an = "$empfaenger";
// $betreff = "$betr";
// $nachricht = "$text\n";
$header = "$mail";
// Preise
$pkugel = $mkugel * 7.62;
$pplaner = $mplaner * 40.39;
$phemd = $mhemd * 28.12;
$phandy2 = $mhandy2 * 40.39;
$capy = $mcapy * 19.99;
$pin = $mpin * 19.99;
$pges = $pkugel + $pplaner + $phemd + $mhandy2 + capy + $pin;
$man ="";
#$man ="";
$betreff = "Bestellung";
$bFarbe = "$Farbe";
$manrede = "Anrede: $Anrede\n";
$mname = "Name: $Vorname $Name\n";
$mstr = "Strasse: $StrasseNr\n";
$mplzort = "PLZ/Ort: $Plz $Ort\n";
$mtele = "Telefon: $Telefon\n";
$mfax = "Fax: $Fax\n";
$mmobil = "Mobil: $mobil\n";
$mmail = "eMail: $mail\n";
$mline = "----------------------\n\n";
$bkugel = "001 Kugelschreiber 7.62 € $mkugel $pkugel €\n" ;
$bplaner = "002 Terminplaner 40.39 € $mplaner $pplaner €\n";
$bhemd = "004 Hemd 28.12 € $mhemd $phemd € $groesse $Farbe\n";
$bhandy2 = "005 Alcatel One 40.39 € $mhandy2 $phandy2 €\n";
$bcapy = "006 Baseball Capy 10.20 € $mcapy $capy €\n";
$bpin = "007 Pin 2.50 € $mpin $mpin €\n";
$bges = "\t\tgesamt: \t $pges €\n";
$bestellung = "Bestellung\n$mline$bkugel$bplaner$bhemd$bhandy2$bcapy$bpin$bges";
mail("$man", "$betreff", "$manrede$mname$mstr$mplzort$mtele$mfax$mmobil$mmail$mline$bestellung","From:
$header");
?>
<html>
<head>
<link rel=stylesheet type="text/css" href="../css/formate.css">
</head>
<body bgcolor="#FFFFFF" text="#000000" background="../images/gw2.gif" >
<table border="0" cellspadding="0" cellspacing="0" width="90%" align="center">
<tr>
<td>
<table border="0" cellspadding="0" cellspacing="0">
<tr><b>
<td>Artikel-Nr.</td>
<td>Art.-Bez.</td>
<td>Preis</td>
<td>Menge</td>
<td>Ges.-Preis</td>
<td>Grösse</td>
<td>Farbe</td>
</b>
</tr>
<tr>
<td>001</td>
<td>Kugelschreiber</td>
<td>14.90 €</td>
<td><? echo "$mkugel"; ?></td>
<td><? echo "$pkugel €"; ?></td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
</tr>
<tr>
<td>002</td>
<td>Terminplaner</td>
<td>79.00 €</td>
<td><? echo "$mplaner"; ?></td>
<td><? echo "$pplaner €"; ?></td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
</tr>
<tr>
<td>004</td>
<td>Hemd mit Logo</td>
<td>55.00 €</td>
<td><? echo "$mhemd"; ?></td>
<td><? echo "$phemd €"; ?></td>
<td><? echo "$groesse"; ?></td>
<td><? echo "$Farbe"; ?></td>
</tr>
<tr>
<td>005</td>
<td>Alcatel One Touch</td>
<td>79.00 €</td>
<td><? echo "$mhandy2"; ?></td>
<td><? echo "$phandy2 €"; ?></td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
</tr>
<tr>
<td>006</td>
<td>Baseball Cap</td>
<td>19.99 €</td>
<td><? echo "$mcapy"; ?></td>
<td><? echo "$capy €"; ?></td>
<td><img src="../images/clear.gif" width="1"
</tr>
<tr>
<td>007</td>
<td>Pin-Schlüsselanhänger</td>
<td>19.99 €</td>
<td><? echo "$mpin"; ?></td>
<td><? echo "$pin €"; ?></td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
</tr>
<tr>
<td><img src="../images/clear.gif" width="1" height="1" </td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
<td><? echo "$pges €"; ?></td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
<td><img src="../images/clear.gif" width="1" height="1" </td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<p align=center><b>Die Ihre Mail wurde abgeschickt.<br> </b></p>
<p align=center><a href='../main.htm' target="main"> zurück</a><br> </p>
</body>
</html>