İyinet'e Hoşgeldiniz!

Türkiye'nin En Eski Webmaster Forum'una Hemen Kayıt Olun!

Kayıt Ol!

Php Kodunu Düzenleme Yardım

beyzadez

0
İyinet Üyesi
Katılım
3 Ocak 2010
Mesajlar
134
Reaction score
0
Elimde contact.xml dosyası var aşagıdaki gibi

PHP:
<?xml version='1.0' encoding='utf-8'?> 

<contactform  
    formwidth="480" 
    formheight="420" 

    mailphpurl="/contact.php" 
    imageurl="images/contact.jpg" 
    imagelink="" 
    imagetarget="_blank" 
    imagewidth="100" 
    imageheight="410" 
    imagepadding="5" 
    imagesolidbackgroundcolor="0x111111" 
    imagesolidbackgroundopacity="0.7" 
    imagesolidbackgroundrounded="10" 
     
    imageshadowopacity="0.3" 
    imageshadowblur="7" 
    imageshadowcolor="0x000000" 
    imageshadowdistance="2" 
    imageshadowangle="90" 
     
    fieldbgcolor="0x111111" 
    fieldbgopacity="0.7" 
    fieldbgrounded="0" 
    fieldfontcolor="0xcccccc" 
    fieldfontsize="12" 
     
    errorbgcolor="0xffffff" 
    errorbgopacity="0.95" 
    errorfontcolor="0x333333" 
    errorfontsize="12" 
     
    infobgcolor="0x333333" 
    infobgopacity="0.9" 
     
    btnbgcolor="0x111111" 
    btnfontcolor="0xaaaaaa" 
    btnfontsize="12" 
     
    fonttype="Arial" 
     
    messagefieldactive="true" 
    messagefieldtitle="Bize Mesajiniz *" 
    messagefieldrequired="true" 
    messagefieldvar="messagevar" 
    messagefielderror="Please enter a Message!" 
    messagefieldheight="125" 
> 

    <infotext> 
    <![CDATA[<newsheadline2>Bize Ulasin</newsheadline2><content><br/> 
    <bolddcolor></bolddcolor><br/> 
    Istek göndermek için <i>"GÖNDER"</i> tusuna basin.Biz mümkün oldugunca en kisa zamanda size geri dönecektir!</content>]]> 
    </infotext> 
     
    <formfields 
        requiredtext="* Ile işaretli alanların doldurulması zorunludur" 
        finishedtext="Teşekkür ederiz!Mesaj gönderilmiş olmuştur!" 
        notfinishedtext="E-posta gönderirken Hata!" 
        submitbuttontext="GONDER" 
    > 
         
        <field 
            fieldtitle="ISIM *" 
            fieldrequired="true" 
            fieldvar="namevar" 
            fielderror="Soyadınızı giriniz!" 
        /> 
         
        <field 
            fieldtitle="Email *" 
            fieldrequired="true" 
            fieldvar="emailvar" 
            fielderror="Lütfen e-posta adresinizi girin!" 
        /> 
     
    </formfields> 
     
</contactform>

contact.php doyasını contact.xml dosyasını göre düzenlemem lazım .Bu konuda bana yardımcı olun.

Contact.php dosyası ..

PHP:
<?php 

/*Enter your recieving email and the "do not reply" email for the automated copy that goes to the requesting person*/ 
$recipient_email = "[email protected]"; 
$donotreply_email = "[email protected]"; 

/*For each form field you setup in the reservation.xml you have to add a variable according to the fieldvar attribute*/ 
$namevar = $_REQUEST['namevar']; 
$emailvar = $_REQUEST['emailvar']; 
$messagevar = $_REQUEST['messagevar']; 

/*Subject of the email YOU recieve*/ 
$subject = 'Contact Form Email from ' . $lastnamevar; 

/*Subject of the email the CUSTOMER recieves*/ 
$subjectnoreply = 'You send an Email from YOURWEBSITE.com'; 

/*Header of the email YOU recieve*/ 
$header = "From: $recipient_email\n" . "MIME-Version: 1.0\n" . "Content-type: text/plain; charset=utf-8\n"; 

/*Header of the email the CUSTOMER recieves*/ 
$headernoreply = "From: $donotreply_email\nReply-To: $donotreply_email" . "MIME-Version: 1.0\n" . "Content-type: text/plain; charset=utf-8\n"; 

/*The email the YOU recieve (you need to list the field value in the body text of the email)*/ 
$forwardingmessage = "You recieved an Email from $firstnamevar $lastnamevar 

-------------------------------------------------- 
Name: $namevar 
Email: $emailvar 
Message: $messagevar 

-------------------------------------------------- 

end of message"; 

/*The email the CUSTOMER recieves you also need to add the variables like above*/ 
$replymessage = "Hello $firstnamevar $lastnamevar 

Thank you for your Email. 

We will follow up shortly. 

Please DO NOT reply to this email. 

Below is a copy of the form you submitted: 
-------------------------------------------------- 
Name: $namevar 
Email: $emailvar 
Message: $messagevar 
-------------------------------------------------- 

Best regards 
YOURWEBSITE.com"; 

mail($recipient_email,$subject,$forwardingmessage,$header); 
mail($emailvar,$subjectnoreply,$replymessage,$headernoreply); 

?>
 

Türkiye’nin ilk webmaster forum sitesi iyinet.com'da forum üyeleri tarafından yapılan tüm paylaşımlardan; Türk Ceza Kanunu’nun 20. Maddesinin, 5651 Sayılı Kanununun 4. maddesinin 2. fıkrasına göre, paylaşım yapan üyeler sorumludur.

Backlink ve Tanıtım Yazısı için iletişime geçmek için Skype Adresimiz: .cid.1580508955483fe5

Üst