Jestem początkujący i proszę o wyrozumiałość
Mam następujący formularz ale ona nie działa
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> <!-- .czcionka { color: #FFF; } .czcionka { color: #FFF; } body { background-image: url(tlo.jpg); background-repeat: no-repeat; background-attachment:scroll ; background-position: center top; margin-top: 30px; margin-bottom: 140px; } --> </style> </head> <body bgcolor="#FFFFFF"> <table width="500" border="0" align="center"> <tr> <form action= "wyslij.php" method="post" > <td> <label> <input type="text" name="imie" id="imie" /> </label> </form> </tr> <tr> <td> <label> <input type="text" name="nazwisko" id="nazwisko" /> </label> </tr> <tr> <td> <label> <input type="text" name="miasto" id="miasto" /> </label> </tr> <tr> <td> <label> <input type="text" name="telefon" id="telefon" /> </label> </tr> <tr> <td> <label> <input type="text" name="email" id="email" /> </label> </tr> <tr> <td> <label> <select name="wojewodztwo" size="1" id="wojewodztwo"> </select> </label> </tr> <tr> <td> <label> <select name="godziny" size="1" id="godziny"> </select> </label> </tr> <tr> <td> <label> <select name="pakiet" size="1" id="pakiet"> </select> </label> </tr> <tr> <td> <label> <select name="dekoder" id="dekoder"> </select> </label> </tr> <tr> <td> <label> <select name="antena" id="antena"> </select> </label> </tr> <tr> <td> <label> <select name="montaz" id="montaz"> </select> </label> </tr> <tr> <td> <label> </form> <label> <input name="" type="reset" value="Wyczyść formularz"/> <input type="submit" name="send" id="send" value="Wyślij" /> </label> </form> </form> </tr> </table> </body>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>CYFRA+</title> </head> <body> <?php //filtruje dane użytkownika $send = $_POST['send']; //mail na który będa wysyłane wiadomości $odbiorca = "biuro@cyfra.info.pl"; //nagłówki $header = "Content-type: text/html; charset=utf-8\r\nFrom: $email"; //Sprawdzam czy istnieje ciastko, jeżeli tak wyświetlam komunikat { //Sprawdzam nick { $error = "Nie wypełniłeś pola <strong>Nick !</strong><br/>"; } { $error .="Za długi nick - max. 20 znaków <br/>";} //Sprawdzam mail { $error .= "Nie wypełniłeś pola <strong>E-mail !</strong><br/>"; } { $error .="Za długi e-mail - max. 30 znaków <br/>";} elseif (preg_match('/^[a-zA-ZąćęłńóśźżĄĆĘŁŃÓŚŹŻ0-9\-\_\.]+\@[a-zA-ZąćęłńóśźżĄĆĘŁŃÓŚŹŻ0-9\-\_\.]+\.[a-z]{2,4}$/',$mail) == false) { $error .= "Niepoprawny adres E-mail! <br/>"; } //Sprawdzam temat { $error .= "Nie wypełniłeś pola <strong>Temat !</strong><br/>"; } { $error .="Za długi temat - max. 120 znaków <br/>";} //Sprawdzam wiadomosc { $error .= "Nie wypełniłeś pola <strong>Wiadomość !</strong><br/>"; } { $error .="Za długa wiadomość - max. 400 znaków <br/>";} //Sprawdzam czy są błędy i wysyłam wiadomość { $list = "Przysłał - $imie ($email) <br/> Nazwisko - $nazwisko"; { $error .= "Twoja wiadomość została wysłana"; } else { $error .= "Wystąpił błąd podczas wysyłania wiadomości, spróbuj później.";} } } ?> </body> </html>
Domyślam się że pewnie jest coś nieźle namieszane