1 2 3 4 5 | if ( empty ( $_POST [ 'step' ]) ) { <input type= "hidden" name= "step" value= "3" /> feeeeeeeeeeeeeeeeeeee <input type= "submit" value= "Weiter ->" name= "submit" > <?php } ?> |
habe es mir aus der install.php abgeschaut nur wenn ich des machen will funktioniert es nicht ich habe es einmal hinbekommen aber jetzt geht es auf einmal nicht mehr
__________________________________
Hie mal die komplette seite
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | <?php if (isset( $_POST [ 'submit' ])){ $anrede = $_POST [ 'anrede' ]; $nachname = $_POST [ 'nachname' ]; $vorname = $_POST [ 'vorname' ]; $email = $_POST [ 'e-mail' ]; $icq = $_POST [ 'icq' ]; $gb = $_POST [ 'gb' ]; $gb2 = $_POST [ 'gb2' ]; $gb3 = $_POST [ 'gb3' ]; $gb4 = $gb . $gb2 . $gb3 ; $zahlung = $_POST [ 'zahlung' ]; $betreff = "Teilnahme von $vorname" ; $fehler = "" ; $from = "From:Scootertreff" . $dz ; $datum = date ( "j.n.Y" ). $dz ; $zeit = date ( "H:i" ). $dz ; $dz = chr (13). chr (10); $n = "Anrede: " . $anrede . "/n" . "Nachname: " . $nachname . "\n" . "Vorname: " . $vorname . "\n" . "eMail :" . $email . "\n" . "Geburtstag: " . $gb4 . "\n" . "Zahlung: " . $zahlung ; $text = $from . $datum . $zeit ; if ( empty ( $anrede )) $fehler .= "<p style=\"color:red;\"><li>Sie müssen ihre Anrede ausfüllen</li></p>" ; if ( empty ( $nachrname )) $fehler .= "<p style=\"color:red;\"><li>Sie müssen ihr Nachnamen ausfüllen</li></p>" ; if ( empty ( $vorname )) $fehler .= "<p style=\"color:red; \"><li>Sie müssen ihr Vorname ausfüllen</li></p>" ; if ( empty ( $email )) $fehler .= "<p style=\"color:red;\"><li>Sie müssen ihre E-Mail ausfüllen</li></p>" ; if ( empty ( $gb )&& ( $gb3 ) && ( $gb2 ) ) $fehler .= "<p style=\"color:red;\"><li>Sie müssen ihre E-Mail ausfüllen</li></p>" ; if ( empty ( $zahlung )) $fehler .= "<p style=\"color:red;\"><li>Sie müssen einen Beszahlungstyp eintragen</li></p>" ; if ( empty ( $fehler )){ echo "erfolgreich Abgesendet" ; mail( "Jason-Forhie@gmx.de" , $betreff , $text , $from ); } } ?> <?php if ( empty ( $_POST [ 'step' ]) ) { ?> <input type= "hidden" name= "step" value= "3" /> <form method= "post" action= "" > <p><h3>Rules</h3> <ul> <li>Am Scooter Treff muss ein Roller verhanden sein.</li> <li>Zelte , Schlafsack Bitte Mitbringen.</li> <li>Mindest Alter ist 15 Jahre.</li> <li>Grillsachen Bitte mitbringen.</li> <li>Werkzeug ist vorhanden aber kan jederzeit trotzdem mitgebracht werden.</li> </ul> <h3>Infos's</h3> <ul> <li>Das Scooter Weekend findet in Eschbach Stadt am Samstag um 18 Uhr ist Treffpunkt</li> <li>Fahrgemeinschaft können abgesprochen werden.</li> </ul> <input type= "submit" value= "weiter=>" ></a> </p> </form> <?php } elseif ( $_POST [ 'step' ] == 3) { ?> <input type= "hidden" name= "step" value= "4" /> <form metod= "post" action= "" > <fieldset> <legend>Personen Angaben</legend> <div style= "float:left; width:100px;" >Anrede*:</div><select name= "anrede" ><option label= "Herr" >Herr</option><option label= "Frau" >Frau</option></select><br> <div style= "float:left; width:100px;" >Nachname*:</div><input type= "text" name= "nachname" ><br> <div style= "float:left; width:100px;" >Vorname*:</div><input type= "text" name= "vorname" ><br> <div style= "float:left; width:100px;" >eMail*:</div><input type= "text" name= "e-mail" ><br> <div style= "float:left; width:100px;" >ICQ*:</div><input type= "text" name= "icq" ><br> <div style= "float:left; width:100px;" >Geburtsdatum*:</div><select name= "gb" ><option label= "01" >01</option><option label= "02" >02</option><option label= "03" >03</option><option label= "04" >04</option><option label= "05" >05</option><option label= "06" >06</option><option label= "07" >07</option><option label= "08" >08</option><option label= "09" >09</option><option label= "10" >10</option><option label= "12" >11</option><option label= "13" >13</option><option label= "14" >14</option><option label= "15" >15</option><option label= "17" >16</option><option label= "18" >18</option><option label= "19" >19</option><option label= "20" >20</option><option label= "21" >21</option><option label= "22" >22</option><option label= "23" >23</option><option label= "24" >24</option><option label= "25" >25</option><option label= "26" >26</option><option label= "27" >27</option><option label= "28" >28</option><option label= "29" >29</option><option label= "30" >30</option><option label= "31" >31</option></select> <select name= "gb2" ><option label= "01" >01</option><option label= "02" >02</option><option label= "03" >03</option><option label= "04" >04</option><option label= "05" >05</option><option label= "06" >06</option><option label= "07" >07</option><option label= "08" >08</option><option label= "09" >09</option><option label= "10" >10</option><option label= "11" >11</option><option label= "12" >12</option></select><input type= "text" name= "gb3" size= "4" maxlength= "4" > </fieldset> <fieldset> <legend>Preisliste></legend> <h3>1Nacht</h3> <ul> <li>15€ Jugendliche</li> <li>20€ Erwachsene (ab 18 Jahre)</li> </ul> <h3>2 Nächte</h3> <ul> <li>30€ Jugendliche</li> <li>35€ Erwachsene (ab 18 Jahre)</li> </ul> </fieldset> <fieldset> <legend>Zahlung</legend> <div style= "float:left; width:100px;" > </div><input type= "radio" name= "zahlung" >Überweisen<br> <div style= "float:left; width:100px;" > </div><input type= "radio" name= "zahlung" >Bahrzahlung<br> <div style= "float:left; width:100px;" > </div><input type= "submit" value= "Weiter ->" name= "submit" > </fieldset> </form> <?php } elseif ( $_POST [ 'step' ] == 4){ ?> <input type= "hidden" value= "5" > <form method= "post" action= "" > <fieldset> <legend>Scooter Info</legend> <div style= "width:100px; float:left;" > </div>Bitte alle * Felder ausfüllen<br> <div style= "width:100px; float:left;" >Deine Marke*:</div><input type= "text" name= "marke" ><br> <div style= "width:100px; float:left;" >Dein Roller*:</div><input type= "text" name= "roller" ><br> <div style= "width:100px; float:left;" >Beschreibung*:</div><textarea cols= "15" rows= "5" name= "beschreibung" ></textarea><br> <div style= "width:100px; float:left;" > </div><input type= "submit" name= "submit2" value= "Absenden" > </fieldset> <fieldset> <legend>Frage</legend> <div style= "width:250px; float:left;" > </div>Diese Felder sind Freiwillig<br> <div style= "width:250px; float:left;" >Wie schnell fährt dein Roller?</div><input type= "text" name= "kmh" ><br> <div style= "width:250px; float:left;" >Wie viel hat dein Roller gekostet?</div><input type= "text" name= "kosten" ><br> <div style= "width:250px; float:left;" >Wie alt ist dein Roller?</div><input type= "text" name= "roller-alt" ><br> <div style= "width:250px; float:left;" >Baust du deine Sachen am Roller selber?</div><input type= "radio" name= "bauen" >JA<input type= "radio" name= "bauen" >NEIN<br> <div style= "width:250px; float:left;" >Warum hast du angefangen deine Roller zu tunen?</div><textarea cols= "15" rows= "3" name= "tunen" ></textarea><br> <div style= "width:250px; float:left;" >Warum nimmst du an diesem Scooter treff teil?</div><textarea cols= "15" rows= "3" ></textarea><br> <div style= "width:250px; float:left;" > </div><input name= "submit" type= "submit" value= "Absenden" > </fieldset> </form> <? } ?> |