2076 Posts in 483 Topics- by 820 Members - Latest Member: akunp2

Pages: [1]   Go Down
  Print  
Author Topic: Chapca sederhana  (Read 1660 times)
tedywinanto
phpBB Guru
*
Offline Offline

Posts: 20


tedy_winanto
View Profile WWW
« on: July 18, 2008, 07:50:21 AM »

Halloww bro... maaf nich baru nongol lagi coz kemaren-maren gue sibuk banget ma gawean gue... nah sekarang gue lagi mau nanya soal chapca... katanya itu bisa menangkal SPAM yach ? Tapi gimana cara bikinnya ? atau udah ada componennya ? Tolong donk pencerahannya.. Thanx yach dok......
« Last Edit: January 01, 1970, 07:00:00 AM by tedywinanto » Logged

webmaster
Administrator
phpBB Guru
*****
Offline Offline

Posts: 924


hairulazami
View Profile WWW
« Reply #1 on: July 20, 2008, 04:25:27 PM »

iye dah, ntar dibikini... tutor na  :D
« Last Edit: January 01, 1970, 07:00:00 AM by webmaster » Logged


tedywinanto
phpBB Guru
*
Offline Offline

Posts: 20


tedy_winanto
View Profile WWW
« Reply #2 on: July 21, 2008, 11:46:01 AM »

Okeh deh brow.. tak tunggu tutorna... tapi jangan-lama=lama yach.. he... wakakakak... okeh dok...
« Last Edit: January 01, 1970, 07:00:00 AM by tedywinanto » Logged

dane
phpBB Guru
*
Offline Offline

Posts: 9


tlethonkanget
View Profile Email
« Reply #3 on: May 22, 2009, 08:48:36 PM »

mana tutor nya...........yang itung itung ngan klo bisa chapcha nya......jangan yang cuma sederhana......nanggung... :D
Logged
webmaster
Administrator
phpBB Guru
*****
Offline Offline

Posts: 924


hairulazami
View Profile WWW
« Reply #4 on: May 23, 2009, 12:01:38 AM »

Code:
<?
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Simple Summary Spam Protection, by dr.emi</title>
</head>

<body>
<?
if(isset($_POST['submit']))
{
if(!empty($_POST['fullname']))
{
if($_POST['user_sum'] != $_SESSION['session_sum'])
{
echo "<p>Penjumlahan Proteksi Spam Salah !</p>";
}
else
{
echo "<p>Semua Data Field Diisi dengan benar !</p>";
}
}
else
{
echo "<p>Field Kosong !</p>";
}
}

?>
<form action="#userMSG" method="post">

  <p>
  <label>Nama Lengkap : <font color="#999999">(harus)</font></label>
  </p>
  <p>
    <input name="fullname" class="input" value="<? echo $_POST['fullname']; ?>" type="text" size="65" />
   
   
    <label><br />
      <br />
    Proteksi Spam: <font color="#999999">(harus)</font></label>
    <?
$a = rand(2, 8);
$b = rand(1, 5);
$session_sum = $a + $b;
$_SESSION['session_sum'] = $session_sum;
echo "<label>$a + $b = ?</label>";
?>
    <input type="text" name="user_sum" size="4" maxlength="4" class="input" /><br />
    <br />
   
    <input name="submit" value="SUBMIT" class="submit" type="submit" />
  </p>
</form>
</body>
</html>
Logged


Pages: [1]   Go Up
  Print  
 
Jump to: