| | | | |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| | |
| Erfahrener Benutzer Registriert seit: 13.11.2005
Beiträge: 2.583
![]() | Bei Checkboxen kannst du mit isset() prüfen, ob diese gewählt wurde und dann eine entsprechende Meldung anzeigen. |
| |
| | |
| Gast
Beiträge: n/a
| Nagut also hier das HTML Menü: Code: <table> <form method="POST" action="http://localhost/Bestatigung.php"> <tr> <td height="37"><span class="heading">Bestellung sonst. Software</span></td> </tr> <tr> <td height="72" align="right"> <select name="Produktname" size="6" id="ProduktID"> <option value="Produkt1"> Produkt1 </option> <option value="Produkt2"> Produkt2 </option> <option value="Produkt3"> Produkt3</option> <option value="Produkt4">Produkt4</option> <option value="Produkt5">Produkt5</option> </select></td> </tr> <tr> </table> Code: <table>
<form method="POST" action="http://localhost/Bestatigung.php">
<tr>
<td height="37"><span class="heading">Bestellung
sonst. Software</span></td>
</tr>
<tr>
<td height="72" align="right">
<select name="Produktname" size="6" id="ProduktID">
<option value="Produkt1"<?php print array_key_exists('Produkt1', $_POST) && $_POST['Produkt1']>== 'Produktname' ? ' selected="selected"' : ''?>>
Produkt1
</option>
<option value="Produkt2"<?php print array_key_exists('Produkt2', $_POST) && $_POST['Produkt2']>== 'Produktname' ? ' selected="selected"' : ''?>>
Produkt2
</option>
<option value="Produkt3"<?php print array_key_exists('Produkt3', $_POST) && $_POST['Produkt3']>== 'Produktname' ? ' selected="selected"' : ''?>>
Produkt3</option>
<option value="Produkt4"<?php print array_key_exists('Produkt4', $_POST) && $_POST['Produkt4']>== 'Produktname' ? ' selected="selected"' : ''?>>
<option value="Produkt5"<?php print array_key_exists('Produkt5', $_POST) && $_POST['Produkt5']>== 'Produktname' ? ' selected="selected"' : ''?>>
</select></td>
</tr>
<tr>
</table>
|
| | |
| Gast
Beiträge: n/a
| Ach quatsch... Sorry habs jezt geschafft!!! VIELEN DANK!!! Code: <html>
<body>
<table>
<tr>
<td height="37"><span class="heading">Bestellung
sonst. Software</span></td>
</tr>
<tr>
<td height="72" align="right">
<select name="Produktname" size="6" id="ProduktID">
<option value="Produkt1"<?php print array_key_exists('Produktname', $_POST) && $_POST['Produktname'] == 'Produkt1' ? ' selected="selected"' : ''?>>Produkt1</option>
<option value="Produkt2"<?php print array_key_exists('Produktname', $_POST) && $_POST['Produktname'] == 'Produkt2' ? ' selected="selected"' : ''?>>Produkt2</option>
<option value="Produkt3"<?php print array_key_exists('Produktname', $_POST) && $_POST['Produktname'] == 'Produkt3' ? ' selected="selected"' : ''?>>Produkt3</option>
<option value="Produkt4"<?php print array_key_exists('Produktname', $_POST) && $_POST['Produktname'] == 'Produkt4' ? ' selected="selected"' : ''?>>Produkt4</option>
<option value="Produkt5"<?php print array_key_exists('Produktname', $_POST) && $_POST['Produktname'] == 'Produkt5' ? ' selected="selected"' : ''?>>Produkt5</option>
</select></td>
</tr>
<tr>
</table>
</html>
</body>
|
| | |
| Benutzer Registriert seit: 09.12.2005
Beiträge: 60
![]() | Ich hab das ausprobiert bei mir klappts nicht: (ich habs erstmal nur für einen gemacht) PHP-Code: |
| |
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Mehrere abhängige dynamische DropDown Menues erstellen | Cheesy | PHP Tipps 2008 | 6 | 17.08.2007 16:41 |
| JS: Auswahl Dropdown Box2 ändern wenn Dropdown Box1 geändert | PsychoEagle | HTML, Usability und Barrierefreiheit | 10 | 23.02.2007 17:16 |
| Auf Auswahl in einer Dropdown Box reagieren | PHP-Fortgeschrittene | 10 | 26.01.2006 13:15 | |
| Dropdown Menü Grösse ändern | Mike55 | PHP Tipps 2005-2 | 2 | 06.10.2005 21:05 |
| Dynamischer Dropdown? | Broadcast | PHP Tipps 2005-2 | 7 | 02.09.2005 17:55 |
| Mit JS DropDown Menü füllen? | HTML, Usability und Barrierefreiheit | 3 | 13.06.2005 16:04 | |
| was is jetz schowieder falsch? dropdown | PHP Tipps 2005 | 7 | 15.03.2005 16:00 | |
| dropdown onchange | PHP Tipps 2004 | 3 | 31.07.2004 20:04 | |
| Dropdown Liste automatisch erstellen | PHP Tipps 2004 | 2 | 20.06.2004 12:41 | |
| DropDown Menu | JeeZ | HTML, Usability und Barrierefreiheit | 1 | 19.06.2004 17:15 |
| Besucher kamen über folgende Suchanfragen bei Google auf diese Seite |
| html dropdown php selected behalten, selected dropdown markiert, markierung des dropdown menü, markierung für dropdown, drop down box beibehalten, select dropdown beibehalten, unterschied dropdown selection, html formular laden select auswahl behalten, checkboxen formular beibehalten |

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.