« Reply #1 on: March 12, 2012, 04:32:41 PM »
|
|
|
|
cekidot broo salah satu script ane cukup simple lah, -> isi form -> notifikasi email kedua belah pihak silakan dikembangkan sendiri
<?php $emailanda = 'ISI SESUAI EMAIL ANDA';
if ($_POST[action] == 'ask') { echo $message = '<center><h2>Terimakasih '.$_POST[namec].'</h2> <b>Pesan anda telah kami terima<br> kami akan segera membalas keemail anda <i><font color="green">'.$_POST[emailc].'</font></i><br> atau kami akan menghubungi anda <i><font color="green">'.$_POST[phonec].'</font></i> <br><br> </b> Berikut ini adalah isi pesan anda<br><br> <table class="table3d" width="100%" ><tr><td align="center"><br> <i> '.nl2br($_POST[messagec]).'</i><br><br> </td></tr></table><br><br><br>
Salam hangat dari kami<br> </center>';
$to = $_POST[emailc]; $subject = '[Form register] '.$_POST[namec].'';
// To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers $headers .= 'From: '.$emailanda.' <'.$_POST[emailc].'>' . "\r\n"; $headers .= 'Cc: '.$emailanda.'' . "\r\n";
// Mail Admin mail($to, $subject, $message, $headers);
}
echo ' <form method="POST" action="proses.php"> <div class="contact_form"> <div class="form_subtitle">all fields are requierd</div> <div class="form_row"> <label class="contact"><strong>Name:</strong></label> <input type="text" name="namec" class="contact_input" /> </div>
<div class="form_row"> <label class="contact"><strong>Email:</strong></label> <input type="text" name="emailc" class="contact_input" /> </div>
<div class="form_row"> <label class="contact"><strong>Phone:</strong></label> <input type="text" name="phonec" class="contact_input" /> </div>
<div class="form_row"> <label class="contact"><strong>Message:</strong></label> <textarea name="messagec" style="width:245px;height:200px;"></textarea> </div>
<div class="form_row"> <center> <input type="hidden" name="action" value="ask"> <input type="submit" class="contact" value="SEND" style="cursor:pointer;width:53px;height:28px;display:block;float:right;margin:0 0 0 10px;background:url(images/contact_bt.gif) no-repeat center;text-decoration:none;text-align:center;line-height:24px;color:#fff;"> </center> </div> </div> </form>';
/************************* SCRIPT POWERED BY WWW.MS-ROOM.COM *************************/ ?>
|
|
|
|
|