Jumat, 06 November 2015

Cara membuat Form Iklan Baris Blogger dengan Php


Cara buat Form Iklan Baris Blogspot dengan Php

langkah Pertama Masuk ke Hosting atau Cpanel area, kalau belum punya bisa dengan Hosting gratis seperti idhostinger.com, katakan anda sudah punya hosting baik premium maupun gratisan, klik menu File Manager 2 buat File .php contoh form.php
kemudian copy paste kode berikut ini:
<?
if($_POST[submit])
{

$pesan=urldecode($_POST[FieldData5]);
$pesan=str_replace('\"','"',$pesan);
$pesan=str_replace("\'","'",$pesan);

$kirim="Posted by".":".""." "."$_POST[FieldData0]"."\n\n";




$kirim .="$pesan"."\n\n";



$kirim .="Telepon".": "."$_POST[FieldData10]"."\n";
$kirim .="Email".": "."$_POST[FieldData1]"."\n";
$kirim .="Website Url ".": "."$_POST[FieldData2]"."\n\n";


$sendi= mail("email.blog@blogger.com","$_POST[FieldData3]","$kirim\n\n", "FROM:\"mhb.web.id\"<email.blog@blogger.com>\n"."X-IP-Address: $_SERVER[REMOTE_ADDR]\n"."X-Referer: $_SERVER[HTTP_REFERER]\n");


if($sendi)
{
header('location:http://mlmposting.blogspot.com');
}
else
{
?>
<script>
alert('gagal kirim email');
window.location="http://mlmposting.blogspot.com";
</script>
<?
}
}
?>
ganti email.blog@blogger.com dengan email blog sobat
ganti mlmposting.blogspot.com dengan alamat url blog sobat

kemudian save

langkah selanjutnya masuk ke dasbor, tata letak, html atau java script paste kode dibawah ini :

<form accept-charset="UTF-8" action="http://domain-anda.com/form.php" enctype="multipart/form-data" method="post"><br /><table>
<tr><td width="40%" align="left">NAMA* :</td>
<td width="60%"><input maxlength="100" name="FieldData0" size="21" type="text" value="" /><br/></td></tr>
<tr><td width="40%" align="left">EMAIL* : </td>
<td width="60%"><input maxlength="100" name="FieldData1" size="21" type="text" value="" /><br/></td></tr>
<tr><td width="40%" align="left">WEBSITE : </td>
<td width="60%"><input maxlength="100" name="FieldData2" size="21" type="text" value="" /><br/></td></tr>
<tr><td width="40%" align="left">Telephone :</td>
<td width="60%"><input maxlength="100" name="FieldData10" size="21" type="text" value="" /><br /></td></tr>
<tr><td width="40%" align="left">JUDUL* : </td><td width="60%"><input maxlength="100" name="FieldData3" size="21" type="text" value="" /></td></tr>
<tr><td align="left" valign="top">Isi Iklan :</td><td><textarea cols="24" name="FieldData5" rows="6"></textarea></td></tr></table><br /><br /><input name="submit" type="submit" value="Send" /><input name="Clear" type="reset" value=" Clear " /><table> </table></form>

ganti domain-anda.com dengan domain sobat
Selamat semoga berhasil ya sobat, jika kurang paham bisa ditanyakan
Disqus Comments