You Now Here »

[ASK]Mau anya lagi sob,script buat registrasi  (Read 6084 times)

maszaki

  • More Share Forum Topic
  • [MS] pendatang baru
  • *
  • maszaki kurang gaul.
  • Rep Power: 0
  • Join: September 25, 2011
  • Posts: 9
  • Poin: 6
  • IP member tracker Logged
[ASK]Mau anya lagi sob,script buat registrasi
« on: March 12, 2012, 03:25:47 PM »


Numpang takon sob  :malu ane pengen buat form registrasi,tapi nyat yg registrasi langsung dapet balesan email gitu,gmana ya sob script ny,maaf klo saya merepotkan,  :keren
oh iya sob,user yg daftar biar auto ke daftar di database gmn y sob?


View Mobile Web Short URL:
« Last Edit: March 12, 2012, 03:29:15 PM by maszaki »

DANNY

G-Plus Author
  • ADMINISTRATOR
  • More Share Forum Topic
  • [MS] kepala suku
  • *
  • DANNY sangat terkenal!DANNY sangat terkenal!DANNY sangat terkenal!DANNY sangat terkenal!DANNY sangat terkenal!DANNY sangat terkenal!
  • Rep Power: 6
  • Join: September 30, 2009
  • Posts: 11,931
  • Poin: 193.924
    • WWW
  • IP member tracker Logged
Re: [ASK]Mau anya lagi sob,script buat registrasi
« Reply #1 on: March 12, 2012, 04:32:41 PM »
  :cool
cekidot broo salah satu script ane
cukup simple lah,
-> isi form
-> notifikasi email kedua belah pihak

silakan dikembangkan sendiri
  :beer:

Code: (testformmail.php) [Select]
<?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
*************************/
?>