Zitat:
Zitat von Niklas Außerdem waren menge1, menge2 und so weiter dafür gedacht, dass mehrere Artikel gleichzeitig bestellt werden können. Das scheint ja nicht mehr nötig zu sein, zumindest gibt es gar keine Schleife mehr. War das nicht ursprünglich so: PHP-Code: while ($zeile = mysql_fetch_array($abfrage)) { echo "<tr><td>$zeile[Name]</td> <td><center>$zeile[Preis] €</td> <td><input style='text-align:right' type='text' size='10' name='menge'></td></tr>"; }
??? |
Das ist eine andere Baustelle. Man hat im Shop entweder aus fertigen Menüs auszuwählen oder sich ein individuelles Menü selbst zusammenzustellen.
Das was ich eben gepostet habe bezieht sich auf die Menüs
Zitat:
Zitat von Niklas Wieso, das ist doch richtig. Ist allerdings nur HTML, also automatisch speichert sich das nicht in ne Session. Aber die Formulardaten werden doch an die bestellung_menu_ende.php gesendet, dann kannst du es dort in die Session übertragen, wenn es unbedingt Sessions sein müssen. Und überhaupt: Wie kommen die Daten denn von bestellung_menu.php nach bestellung_menu_auswahl.php? Da gibts doch garkeinen Submit-Button. Und auch von da zur nächsten Seite gibts garkeinen Sendebutton! |
Ich wollte nicht den ganzen Quelltext kopieren wegen der besseren Lesbarkeit - ich kopier mal alle vollständigen Scripte.
Sendebuttons sind dabei!
1.Seite - bestellung_start.php: Auswahl zwischen Menüs & individueller Zusammenstellung
PHP-Code:
<?php
session_start();
?>
<html>
<head>
<meta charset="UTF-8">
<title>Fresh Ideas - Angebot</title>
<link rel="icon" href="http://www.php.de/images/favicon.gif" type="image/x-icon"/>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="shortcut icon" href="http://www.php.de/images/favicon.gif" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="css/styles.css"/>
</head>
<body>
<!--start container-->
<div id="container">
<!--start header-->
<header>
<!--start logo-->
<a href="index.php" id="logo"><img src="http://www.php.de/images/Logo_neu.jpg" alt="logo"/></a>
<!--end logo-->
<!--start menu-->
<nav>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="angebot.html" >Angebot</a></li>
<li><a href="bestellung_start.php"class="current">Bestellung</a></li>
<li><a href="feedback.php">Feedback</a></li>
<li><a href="kontakt.php">Kontakt</a></li>
</ul>
</nav>
<!--end menu-->
<!--end header-->
</header>
<!--start holder-->
<div class="holder_content">
<section class="group1">
<br><br>
<fieldset>
<legend><font size="4"> Wählen Sie Ihr gewünschtes Frühstücksmenü aus </font></legend>
<br><br>
<tr><td height="10"> </td></tr>
<tr><td height="10"><font size="2">Bitte wählen Sie eine Kategorie:</font></td></tr>
<tr><td height="10"> </td></tr>
<tr><td><br> <img src="http://www.php.de/images/group.gif" alt="Kategorie"> <font size="2"><a href="bestellung_menu.php">Menüs</a></font>
<br> <img src="http://www.php.de/images/group.gif" alt="Kategorie"> <font size="2"><a href="bestellung_individuell.php">Individuelle Zusammenstellung</a></font><br><br><br>
</td>
</tr>
<tr>
<td height="10"> </td>
</tr>
</fieldset>
</section>
<aside class="group2">
<br><br>
<a class="photo_hover3" href="#"><img src="http://www.php.de/images/breakfast (3).jpg" width="290" height="450" alt="picture"/></a>
</aside>
</div>
<!--end holder-->
</div>
<!--end container-->
<!--start footer-->
<footer>
<div class="container">
<div id="FooterTwo"> © 2011 Fresh ideas </div>
<div id="FooterTree"> Valid html5, css3, design and code by <a href="http://www.marijazaric.com">marija zaric - creative simplicity</a> </div>
</div>
</footer>
<!--end footer-->
<!-- Free template distributed by http://freehtml5templates.com -->
</body>
</html>
2.Seite: bestellung_menu.php: Eingabe der Bestellmengen für die Menüs!
PHP-Code:
<?php
session_start();
?>
<html>
<head>
<meta charset="UTF-8">
<title>Fresh Ideas - Angebot</title>
<link rel="icon" href="http://www.php.de/images/favicon.gif" type="image/x-icon"/>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="shortcut icon" href="http://www.php.de/images/favicon.gif" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="css/styles.css"/>
</head>
<body>
<!--start container-->
<div id="container">
<!--start header-->
<header>
<!--start logo-->
<a href="index.php" id="logo"><img src="http://www.php.de/images/Logo_neu.jpg" alt="logo"/></a>
<!--end logo-->
<!--start menu-->
<nav>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="angebot.html" >Angebot</a></li>
<li><a href="bestellung_start.php"class="current">Bestellung</a></li>
<li><a href="feedback.php">Feedback</a></li>
<li><a href="kontakt.php">Kontakt</a></li>
</ul>
</nav>
<!--end menu-->
<!--end header-->
</header>
<!--start holder-->
<div class="holder_content">
<section class="group1">
<br><br>
<fieldset>
<legend><font face="Lucida Sans" size="4"> Geben Sie die Bestellmengen ein: </font></legend>
<br><center>
<tr><td>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
<tbody><tr bgcolor="#FFCC33"><td colspan="6" height="10"> </td>
</tr>
<tr bgcolor="#FFCC33">
<td colspan="2" height="40"><b><font size="2"> Frühstückmenü</font></b></td>
<td height="40" width="70"><div align="center"><b><font size="2">Status</font></b></div></td>
<td height="40" width="120"><div align="right"><b><font size="2">Einzelpreis </font></b></div></td>
<td height="40" width="60"><div align="center"><b><font size="2">Menge</font></b></div></td>
</tr>
<tr bgcolor="#F4F3FB"><td colspan="6" height="10"> </td></tr>
<form action="bestellung_menu_auswahl.php" method="POST">
<tr bgcolor="#F4F3FB">
<td colspan="2" height="15"><font size="2"><a href="angebot.html"> Amerikanisches Frühstück</a></font></td>
<td height="15" width="70"><div align="center"><img src="http://www.php.de/images/status_green.gif" alt="Status" border="0"></div></td>
<td height="15" width="120"><div align="right"><font size="2"><input name="variante1" value="preis1" type="hidden">10,00 € </font></div></td>
<td height="15" width="120"><div align="center"><input name="menge1" size="3" maxlength="3" value="0" type="text"></div></td>
</tr>
<tr bgcolor="#F4F3FB">
<td colspan="2" height="15"><font size="2"><a href="angebot.html"> Romantisches Frühstück</a></font></td>
<td height="15" width="70"><div align="center"><img src="http://www.php.de/images/status_green.gif" alt="Status" border="0"></div></td>
<td height="15" width="120"><div align="right"><font size="2"><input name="variante1" value="preis1" type="hidden">13,00 € </font></div></td>
<td height="15" width="120"><div align="center"><input name="menge2" size="3" maxlength="3" value="0" type="text"></div></td>
</tr>
<tr bgcolor="#F4F3FB">
<td colspan="2" height="15"><font size="2"><a href="angebot.html"> Hangover Frühstück</a></font></td>
<td height="15" width="70"><div align="center"><img src="http://www.php.de/images/status_green.gif" alt="Status" border="0"></div></td>
<td height="15" width="120"><div align="right"><font size="2"><input name="variante1" value="preis1" type="hidden">14,00 € </font></div></td>
<td height="15" width="120"><div align="center"><input name="menge3" size="3" maxlength="3" value="0" type="text"></div></td>
</tr>
<tr bgcolor="#F4F3FB">
<td colspan="2" height="15"><font size="2"><a href="angebot.html"> Kaiserfrühstück</a></font></td>
<td height="15" width="70"><div align="center"><img src="http://www.php.de/images/status_green.gif" alt="Status" border="0"></div></td>
<td height="15" width="120"><div align="right"><font size="2"><input name="variante1" value="preis1" type="hidden">11,00 € </font></div></td>
<td height="15" width="120"><div align="center"><input name="menge4" size="3" maxlength="3" value="0" type="text"></div></td>
</tr>
<tr bgcolor="#F4F3FB"><td colspan="6" height="10"> </td></tr>
<tr bgcolor="#FFCC33"><td colspan="6" height="10"> </td></tr>
<tr bgcolor="#F4F3FB"><td colspan="6" height="10"> </td></tr>
<tr bgcolor="#F4F3FB" align='center'>
<td colspan="6" height="10"><input type="reset" name="abbruch" value="Abbrechen"> <input type="submit" name="bestellen" value="Bestellen"></td>
</tr>
<tr bgcolor="#F4F3FB"><td colspan="6" height="10"> </td></tr>
</form>
</table>
</fieldset>
</section>
<aside class="group2">
<br><br>
<a class="photo_hover3" href="#"><img src="http://www.php.de/images/breakfast (3).jpg" width="290" height="450" alt="picture"/></a>
</aside>
</div>
<!--end holder-->
</div>
<!--end container-->
<!--start footer-->
<footer>
<div class="container">
<div id="FooterTwo"> © 2011 Fresh ideas </div>
<div id="FooterTree"> Valid html5, css3, design and code by <a href="http://www.marijazaric.com">marija zaric - creative simplicity</a> </div>
</div>
</footer>
<!--end footer-->
<!-- Free template distributed by http://freehtml5templates.com -->
</body>
</html>
3.Seite: bestellung_menu_auswahl.php: Gesamtpreis wird ermittelt!
PHP-Code:
<?php
session_start();
?>
<html>
<head>
<meta charset="UTF-8">
<title>Fresh Ideas - Angebot</title>
<link rel="icon" href="http://www.php.de/images/favicon.gif" type="image/x-icon"/>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="shortcut icon" href="http://www.php.de/images/favicon.gif" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="css/styles.css"/>
</head>
<body>
<!--start container-->
<div id="container">
<!--start header-->
<header>
<!--start logo-->
<a href="index.php" id="logo"><img src="http://www.php.de/images/Logo_neu.jpg" alt="logo"/></a>
<!--end logo-->
<!--start menu-->
<nav>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="angebot.html" >Angebot</a></li>
<li><a href="bestellung_start.php"class="current">Bestellung</a></li>
<li><a href="feedback.php">Feedback</a></li>
<li><a href="kontakt.php">Kontakt</a></li>
</ul>
</nav>
<!--end menu-->
<!--end header-->
</header>
<!--start holder-->
<div class="holder_content">
<br><br>
<center><fieldset>
<legend><font face="Lucida Sans" size="+2"> Folgende Daten wurden übermittelt: </font></legend>
<form action="bestellung_menu_dateneingabe.php" method="POST">
<?php
$_SESSION["menge1"] = $_POST["menge1"];
$_SESSION["menge2"] = $_POST["menge2"];
$_SESSION["menge3"] = $_POST["menge3"];
$_SESSION["menge4"] = $_POST["menge4"];
echo "<br><center><tr><td><table align='center' border='0' cellpadding='0' cellspacing='0' width='98%'>
<tbody><tr bgcolor='#FFCC33'><td colspan='6' height='10'> </td></tr>
<tr bgcolor='#FFCC33'>
<td colspan='2' height='40'><b><font size='3'> Frühstückmenü</font></b></td>
<td height='40' width='70'><div align='center'><b><font size='3'>Einzelpreis</font></b></div></td>
<td height='40' width='120'><div align='right'><b><font size='3'>Menge </font></b></div></td>
<td height='40' width='60'><div align='center'><b><font size='3'>Gesamtpreis</font></b></div></td>
</tr>
<tr bgcolor='#F4F3FB'><td colspan='6' height='10'> </td></tr>
";
if(isset($_POST["menge1"]))
{
$ergebnis1 = $_POST["menge1"] * (10.00);
echo "<tr bgcolor='#F4F3FB'><td colspan='2' height='15'><font size='2'> Amerikanisches Frühstück</font></td>
<td height='15' width='120'><div align='center'><font size='2'>10.00 €</font></div></td>
<td height='15' width='120'><div align='center'><font size='2'>$_POST[menge1]</font></div></td>
<td height='15' width='120'><div align='center'><font size='2'>". $ergebnis1 ." €</font></div></td></tr>";
}
if(isset($_POST["menge2"]))
{
$ergebnis2 = $_POST["menge2"] * (13.00);
echo "<tr bgcolor='#F4F3FB'><td colspan='2' height='15'><font size='2'> Romantisches Frühstück</font></td>
<td height='15' width='120'><div align='center'><font size='2'>13.00 €</font></div></td>
<td height='15' width='120'><div align='center'><font size='2'>$_POST[menge2]</font></div></td>
<td height='15' width='120'><div align='center'><font size='2'>". $ergebnis2 ." €</font></div></td></tr>";
}
if(isset($_POST["menge3"]))
{
$ergebnis3 = $_POST["menge3"] * (14.00);
echo "<tr bgcolor='#F4F3FB'><td colspan='2' height='15'><font size='2'> Hangover Frühstück</font></td>
<td height='15' width='120'><div align='center'><font size='2'>14.00 €</font></div></td>
<td height='15' width='120'><div align='center'><font size='2'>$_POST[menge3]</font></div></td>
<td height='15' width='120'><div align='center'><font size='2'>". $ergebnis3 ." €</font></div></td></tr>";
}
if(isset($_POST["menge1"]))
{
$ergebnis4 = $_POST["menge4"] * (11.00);
echo "<tr bgcolor='#F4F3FB'><td colspan='2' height='15'><font size='2'> Kaiserfrühstück</font></td>
<td height='15' width='120'><div align='center'><font size='2'>11.00 €</font></div></td>
<td height='15' width='120'><div align='center'><font size='2'>$_POST[menge4]</font></div></td>
<td height='15' width='120'><div align='center'><font size='2'>". $ergebnis4 ." €</font></div></td></tr>";
}
echo "<tr bgcolor='#F4F3FB'><td colspan='6' height='10'> </td></tr><tr bgcolor='#FFCC33'><td colspan='6' height='10'> </td></tr>";
$gesamtpreis = $ergebnis1 + $ergebnis2 + $ergebnis3 + $ergebnis4;
$_SESSION["gesamtpreis"] = $gesamtpreis;
echo " <tr bgcolor='#F4F3FB'><td colspan='6' height='10'> </td></tr>
<tr bgcolor='#F4F3FB'><td colspan='6' height='10'><font size='3'><b><center>Der Gesamtpreis der Bestellung beträgt: ". $gesamtpreis ." €.</font></b></td></tr>
<tr bgcolor='#F4F3FB'><td colspan='6' height='10'> </td></tr>
<tr bgcolor='#FFCC33'><td colspan='3' height='10'> <a href='bestellung_menu.php'><input type='button' value='Zurück'><left></a></td><td colspan='3' height='10'><right> <a href='bestellung_menu_dateneingabe.php'><input type='button' value='Bestellung abschließen'></a></td></tr>
</table>";
?>
</form>
</fieldset>
</div>
<!--end holder-->
</div>
<!--end container-->
<!--start footer-->
<footer>
<div class="container">
<div id="FooterTwo"> © 2011 Fresh ideas </div>
<div id="FooterTree"> Valid html5, css3, design and code by <a href="http://www.marijazaric.com">marija zaric - creative simplicity</a> </div>
</div>
</footer>
<!--end footer-->
<!-- Free template distributed by http://freehtml5templates.com -->
</body>
</html>
4.Seite: bestellung_menu_daten.php: Eingabe der Kontaktdaten, Lieferadresse etc für die Bestellung
PHP-Code:
<?php
session_start();
?>
<html>
<head>
<meta charset="UTF-8">
<title>Fresh Ideas - Angebot</title>
<link rel="icon" href="http://www.php.de/images/favicon.gif" type="image/x-icon"/>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="shortcut icon" href="http://www.php.de/images/favicon.gif" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="css/styles.css"/>
</head>
<body>
<!--start container-->
<div id="container">
<!--start header-->
<header>
<!--start logo-->
<a href="index.php" id="logo"><img src="http://www.php.de/images/Logo_neu.jpg" alt="logo"/></a>
<!--end logo-->
<!--start menu-->
<nav>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="angebot.html" >Angebot</a></li>
<li><a href="bestellung_start.php"class="current">Bestellung</a></li>
<li><a href="feedback.php">Feedback</a></li>
<li><a href="kontakt.php">Kontakt</a></li>
</ul>
</nav>
<!--end menu-->
<!--end header-->
</header>
<!--start holder-->
<div class="holder_content">
<br><br>
<center><fieldset>
<legend><font face="Lucida Sans" size="4"> Folgende Daten wurden übermittelt: </font></legend>
<form action="bestellung_menu_ende.php" method="POST">
<?php
$timestamp = time();
$tage = array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");
$tag = date("w");
$datum = date("d.m.Y", $timestamp);
$uhrzeit = date("H:i ", $timestamp);
echo "
<form action'bestellung_menu_ende.php' method='POST'>
<tbody><tr><td>
<table border='0' cellpadding='0' cellspacing='0' width='740'>
<tbody><tr><td colspan='4' height='10'></td></tr>
<tr bgcolor='#FFCC33'> <td colspan='4' height='35'><b><font size='2'> Rechnungs- und Lieferadresse</font></b></td></tr>
<tr bgcolor='#F4F3FB'><td colspan='6' height='10'> </td></tr>
<tr bgcolor='#F4F3FB'><td colspan='6' height='10'><font size='2'> Heute ist <b>$tage[$tag]</b>, der $datum - es ist $uhrzeit Uhr</font></td></tr>
<tr bgcolor='#F4F3FB'><td colspan='6' height='10'> </td></tr>
<tr bgcolor='#F4F3FB'>
<td height='26' width='23%'> </td>
<td height='26' width='32%'> </td>
<td colspan='2' height='26'><font size='2'>separate Lieferadresse <br>verwenden: </font><input name='check' value='ok' type='checkbox'></td></tr>
<tr bgcolor='#F4F3FB'>
<td height='26' width='20%'><p><font color='#000000' size='2'> Name:</font></p></td>
<td height='26' width='30%'><input name='rech_name' size='20' maxlength='50' value='' type='text'></td>
<td height='26' width='15%'><font color='#000000' size='2'>Name:</font></td>
<td height='26' width='40%'><input name='lief_name' size='20' maxlength='50' value='' type='text'></td>
</tr>
<tr bgcolor='#F4F3FB'>
<td height='26' width='20%'><font color='#000000' size='2'> Straße & Nr:</font></td>
<td height='26' width='30%'><input size='20' maxlength='50' name='strasse' value='' type='text'></td>
<td height='26' width='10%'><font color='#000000' size='2'>Straße & Nr:</font></td>
<td height='26' width='40%'><input name='lief_strasse' size='20' maxlength='50' value='' type='text'>
</td>
</tr>
<tr bgcolor='#F4F3FB'>
<td height='26' width='20%'><p><font color='#000000' size='2'> PLZ:</font></p></td>
<td height='26' width='30%'><input name='plz' size='5' maxlength='5' value='' type='text'></td>
<td height='26' width='10%'><font color='#000000' size='2'>PLZ:</font></td>
<td height='26' width='40%'><input name='lief_plz' size='5' maxlength='5' value='' type='text'></td>
</tr>
<tr bgcolor='#F4F3FB'>
<td height='26' width='20%'><font color='#000000' size='2'> Ort:</font></td>
<td height='26' width='30%'><input name='ort' size='20' maxlength='50' value='' type='text'></td>
<td height='26' width='10%'><font color='#000000' size='2'>Ort:</font></td>
<td height='26' width='40%'><input name='lief_ort' size='20' maxlength='50' value='' type='text'>
</td>
</tr>
<tr bgcolor='#F4F3FB'>
<td height='26' width='20%'><font color='#000000' size='2'> Telefon:</font></td>
<td height='26' width='30%'><input name='telefon' size='20' maxlength='50' value='' type='text'></td>
<td height='26' width='10%'><font color='#000000' size='2'>E-Mail:</font></td>
<td height='26' width='40%'><input name='email' size='20' maxlength='50' value='' type='text'>
</td>
</tr>
<tr bgcolor='#F4F3FB'>
<td height='26' width='20%'> </td>
<td height='26' width='30%'> </td>
<td height='26' width='10%'> </td>
<td height='26' width='40%'> </td>
</tr>
<tr bgcolor='#F4F3FB'>
<td colspan='4' height='35'><b><font size='2'> Zahlungsart</font></b></td>
</tr>
<tr bgcolor='#F4F3FB'>
<td height='26' width='20%'><font size='2'> Bitte wählen:</font></td>
<td colspan='3' height='26'>
<select name='zahlungsart'>
<option value='Lastschrift'>Lastschrift (Versandkosten: 3,00 EUR) </option>
<option value='Nachnahme'>Nachnahme (Versandkosten: 5,00 EUR) </option>
<option value='Vorkasse'>Vorkasse (Versandkosten: 2,00 EUR) </option>
</select>
</td>
</tr>
<tr bgcolor='#F4F3FB'>
<td height='26' width='20%'> </td>
<td height='26' width='30%'> </td>
<td height='26' width='10%'> </td>
<td height='26' width='40%'> </td>
</tr>
<tr bgcolor='#F4F3FB'>
<td colspan='4' height='35'><b><font size='2'> Lieferdaten</font></b></td>
</tr>
<tr bgcolor='#F4F3FB'>
<td height='26' width='20%'><font color='#000000' size='2'> Datum <i>(TT-MM-JJJJ)</i>:</font></td>
<td height='26' width='30%'><input name='datum' size='10' maxlength='10' value='01-01-2012' type='text'></td>
<td height='26' width='10%'><font color='#000000' size='2'>Uhrzeit:</font></td>
<td height='26' width='40%'><input name='uhrzeit' size='5' maxlength='4' value='10:00' type='text'>
</td>
</tr>
<tr bgcolor='#F4F3FB'>
<td height='26' width='20%'><font size='2'> </font></td>
<td colspan='3' height='26'></td>
</tr>
<tr bgcolor='#FFCC33'>
<td height='26' width='20%'><font color='#000000' size='2'> <a href='bestellung_menu.php'><input type='button' value='Zurück'></a></font></td>
<td height='26' width='30%'> </td>
<td height='26' width='10%'><font color='#000000' size='2'> </td>
<td height='26' width='40%'> <a href='bestellung_menu_ende.php'><input type='button'name='bestellen' value='Bestellung abschließen'></a>
</td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
</tr>
<tr>
<td height='10'> </td>
</tr>
</tbody>
</form>
";
?>
</fieldset>
</div>
<!--end holder-->
</div>
<!--end container-->
<!--start footer-->
<footer>
<div class="container">
<div id="FooterTwo"> © 2011 Fresh ideas </div>
<div id="FooterTree"> Valid html5, css3, design and code by <a href="http://www.marijazaric.com">marija zaric - creative simplicity</a> </div>
</div>
</footer>
<!--end footer-->
<!-- Free template distributed by http://freehtml5templates.com -->
</body>
</html>
5.Seite: bestellung_menu_ende.php: Hier will ich das alle Formulardaten von Seite 2 beginnend ausgegeben werden - aber anscheinend speichert er mir die Daten aus dem Formular auf Seite 4 nicht!!!
PHP-Code:
<?php
session_start();
$_SESSION["rech_name"] = $_POST['rech_name'];
print_r($_POST);
while (list($key, $value) = each($_SESSION))
{
echo $key ." = " .$value ."<br>";
}
?>
Als Ausgabe in Seite 5 kriege ich raus:
Notice: Undefined index: name in C:\htdocs\iuk4\iuck4\bestellung_menu_ende.php on line 6
Array ( ) menge1 = 1
menge1 = 1
menge2 = 2
menge3 = 0
menge4 = 0
gesamtpreis = 36
rech_name =
Wo ist mein Fehler? Was habe ich falsch gemacht?
Liegt es vlt daran dass ich bei input name ein '...' benutze statt den Namen in "..." schreibe? Aber anders geht es ja nicht, da der Code in php ist und php mir dann immer ne Fehlermeldung gibt,wenn ich den Namen in "..." schreibe!
zB steht auf Seite 2:
PHP-Code:
<input name="menge3" size="3" maxlength="3" value="0" type="text">
Und auf Seite 4:
PHP-Code:
<input name='rech_name' size='20' maxlength='50' value='' type='text'>