<div class="imLineProp"> <label for="Itm_8_00_3"> Załącznik<span class="style1">*</span>:<br /> <input class="imInput imInput_0" type="file" name="Itm_8_00_3" id="Itm_8_00_3" onfocus="imFocus(this,'#FFFFE1')" onblur="imFocus(this,'#FFFFFF')" /> </label> </div>
i teraz tak oto pliczek w ktorym wysylany jest mail (mail_home_8_00.php)
<?php require("class.phpmailer.php"); //Form Data $txtData = ""; $htmData = ""; $txtData .= "Podaj swój adres e-mail: " . $_POST["Itm_8_00_1"] . "\r\n"; $htmData .= "<tr><td width=\"25%\"><b>Podaj swój adres e-mail:</b></td><td>" . $_POST["Itm_8_00_1"] . "</td></tr>"; $txtData .= "Krótki opis: " . $_POST["Itm_8_00_2"] . "\r\n"; $htmData .= "<tr><td width=\"25%\" bgcolor=\"#EEEEEE\"><b>Krótki opis:</b></td><td bgcolor=\"#EEEEEE\">" . $_POST["Itm_8_00_2"] . "</td></tr>"; $txtData .= "Załącznik: " . $_FILES["Itm_8_00_3"]["name"] . "\r\n"; $htmData .= "<tr><td width=\"25%\"><b>Załącznik:</b></td><td>" . $_FILES["Itm_8_00_3"]["name"] . "</td></tr>"; // Template $htmHead = "<table width=\"90%\" border=\"0\" bgcolor=\"#FFFFFF\" cellpadding=\"4\" style=\"font: 11px Tahoma; color: #000000; border: 1px solid #BBBBBB;\">"; $htmFoot = "</table>"; //Send email to owner $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "touch.home.pl"; // SMTP server $mail->From = $_POST["Itm_8_00_1"]; $mail->AddAddress("touch@home.pl"); $mail->Subject = $_POST["Itm_8_00_1"]; $mail->Body = $_POST["Itm_8_00_2"]; $mail->WordWrap = 500; if(!$mail->Send()) { } else { echo "<script>window.location.href = 'link';</script>"; /*jak sie mail wysle to przenosi na strone * *Wie ktos moze jak tutaj wstawic przeniesienie za pmoca funkcji header??*/ } $mail->send(); ?>
Jak tutaj dodac jeszcze zeby zalacznik sie dolaczal , ten ktory wybierze sobie uzytkownik??