Hallo, habe gestern einigermaßen versucht dass Formular zu machen derzeit mit einem Optionsfeld und einem Absendebutton dass ich noch einen Überblick habe. Nun kommen schon die ersten Probleme: Das Feld wird nicht als Feld sondern als Text erkannt, und wenn aber dass Formular gehen würde, befindet es sich über den Header am besten dann mit CSS definieren oder?? Oder hab ich überhaupt was falsch gemacht?
simulation.php
PHP
- <?php
- if (empty ($_POST ['form']) ==TRUE )
- {
- echo '
- <form action="simulation.php" method="POST"
- name="option" id="option"
- <p>
- name="option"
- <option>-</option>
- <option>Wohnhaus</option>
- <option>Gewerbe(Bäcker,Metzger etc.)</option>
- <option>Gebäude m. hohem Wärmeberarf (Hotel, Altenheim, Schwimmbad)</option>
- <option>Gebäude mit geringer Nutzung (Verwaltung, Turnhalle, KiGa, Schule)</option>
- <option>Sonstiges</option>
- </select>
- </p>
- <p>Absenden:
- <input type="Submit" name="Button" id="Button"
- value="absenden" /> </p>
- </form> ';
- }
- else
- {
- //Fehlermeldung
- echo "eingetragene Option: ". $_POST ['option'];
- }
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
- <head>
- <title>
- BHKWPartner - das optimale BHKW von Ihrem Installateur!
- </title>
- <link href="./design.css" type="text/css" rel="stylesheet" />
- <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
- </head>
- <body>
- <div id="header">
- </div>
- <div id="left">
- <ul id="navigation">
- <li> <a href="index.html">Startseite</a> </li>
- <li> <a href="simulation.html">Simulationsanfrage </a> </li>
- <li> <a href="planung.html">BHKW-Planung </a> </li>
- <li> <a href="abrechnung.html">BHKW-Abrechnung </a> </li>
- <li> <a href="aktuelles.html">Aktuelles </a> </li>
- <li> <a href="info.html">Info </a> </li>
- <li> <a href="agb.html"> AGB </a> </li>
- <li> <a href="impressum"> Impressum </a> </li>
- </ul>
- <div id="linksunten5">
- <p>
- <a href="http://jigsaw.w3.org/css-validator/check/referer">
- <img style="border:0;width:88px;height:31px;padding-top:40%;padding-left:25%;"
- src="http://jigsaw.w3.org/css-validator/images/vcss"
- alt="CSS ist valide!" />
- </a>
- </p> </div>
- </div>
- <div id="inhalt">
- </div>
- <div id="fusszeile">
- <p>© Otto Huml Wärme und Strom</p>
- </div>
- </body>
- </html>