Witam jak w tym formularzu zrobić możliwość wysłania zdjęcia
<form action="" method="POST" onsubmit="return validateForm(this);">
<label>» Imię: </label> <br> <input type="text" name="imie"style="height: 30px; width: 190px;"size="25" required="required" placeholder="imie" pattern="[A-Za-z0-ˇą-Żż]{3,}" /> </p> <br>
<label>» Nazwisko:</label><br> <input type="text" name="nazwisko"style="height: 30px; width: 190px;"size="25" required="required" placeholder="nazwisko" pattern="[A-Za-z0-ˇą-Żż]{3,}" /> </p> <br>
<label>» E-mail: </label> <br> <input type="text" name="email"style="height: 30px; width: 190px; size="25" required="required"placeholder="email" pattern="([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})"> <br>
<label>» Treść:</label> <br> <textarea name="tresc"cols="37px;" rows="10" required="required" placeholder="treść wiadomości" pattern="[A-Za-z0-ˇą-Żż]{3,}" /></textarea> <br>
<br>
<input type="image" name="B1"src="css/images/wysl.jpg">
</form>
<?php header("Location: <a href="http
://www.xxxx.za.pl/index.php"%3b%29;" target="_blank">http://www.xxxx.za.pl/index.php");</a> $adres = "xxx@gmail.com";
$temat = "FORMULARZ";
$tresc = "Imie ".$_POST["imie"]." nazwisko: ".$_POST["nazwisko"]." email: ".$_POST["email"]." Wiadomość: ".$_POST["tresc"].".";
if(function_exists('mail') AND $_SERVER['REQUEST_METHOD'] == 'POST')
{
if(empty($_POST['imie'])) {
echo "<c>Wpisz imię</c>"; }
else if(empty($_POST['nazwisko'])) {
echo "<c>Wpisz nazwisko</c>"; }
else if(empty($_POST['email'])) {
echo "<c>Wpisz swój adres e-mail</c>"; }
else if(empty($_POST['tresc'])) {
echo "<c>Wpisz treść wiadomości</c>"; }
else
{
mail($adres, $temat, $tresc); echo "<d>Formularz został wysłany Dzięki</d>"; }
}
?>