böyle bir form uygulaması yazdım, şimdiyse file ekleyerek epostaya göndermek istiyorum
<?php
$EmailFrom = "FORM@otocam.COM";
$EmailTo = "elbeated@gmail.com";
$Subject = "Otocam.com Randevu Formu";
$flexRadioDefault = Trim(stripslashes($_POST['flexRadioDefault']));
$marka = Trim(stripslashes($_POST['pxp-company-job-type']));
$model = Trim(stripslashes($_POST['pxp-company-job-salary']));
$isim = Trim(stripslashes($_POST['pxp-company-job-isim']));
$soyisim= Trim(stripslashes($_POST['pxp-company-job-soyisim']));
$plaka= Trim(stripslashes($_POST['pxp-company-job-is']));
$tel= Trim(stripslashes($_POST['pxp-company-job-tel']));
// validation
$validationOK=true;
if (!$validationOK) {
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
exit;
}
// prepare email body text
$Body = "Formu Bilgileri:";
$Body .= "\n";
$Body .= "Araç Türü: ";
$Body .= $flexRadioDefault;
$Body .= "\n";
$Body .= "Araç Markası: ";
$Body .= $marka;
$Body .= "\n";
$Body .= "Araç Modeli: ";
$Body .= $model;
$Body .= "\n";
$Body .= "İsim: ";
$Body .= $isim;
$Body .= "\n";
$Body .= "Soyisim: ";
$Body .= $soyisim;
$Body .= "\n";
$Body .= "Araç Plakası: ";
$Body .= $plaka;
$Body .= "\n";
$Body .= "Telefon Numarası: ";
$Body .= $tel;
$Body .= "\n";
// send email
$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");
// redirect to success page
if ($success){
print "<meta http-equiv=\"refresh\" content=\"0;URL=index.html\">";
}
else{
print "<meta http-equiv=\"refresh\" content=\"0;URL=404.htm\">";
}
?>