Product Survey

querydb($db,"select * from survey where aktif='y'"); $rsurvey=$qsurvey->getrow(); $show=(is_array($rsurvey)) ? true : false; $qkota=new query(); $qkota->querydb($db,"select * from kota"); $rkota=$qkota->getrow(); if (isset($Submit)) { require('inc/php-captcha.inc.php'); if (PhpCaptcha::Validate($_POST['Dacak'])) { $err_nama=($nama=="") ? "
Nama wajib diisi !
" : ""; $err_email=($emailaddr=="") ? "
Email wajib diisi !
" : ""; if ($err_email=="") { $err_email2=(check_email_address($emailaddr)) ? "" : "
Format email address tidak benar !
"; } if ($err_nama=="" && $err_email=="" && $err_email2=="") { /* $a=1; while ($a<21) { $var="p" .$a; if (isset($$var)) { $$var=1; } else { $$var=0; } $a++; } */ $str="insert into surveyor (survey,nama,email,kota,p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17,p18,p19,p20,masukan) values (\"$survey\",\"$nama\",\"$emailaddr\",\"$kota\",\"$p1\",\"$p2\",\"$p3\",\"$p4\",\"$p5\",\"$p6\",\"$p7\",\"$p8\",\"$p9\",\"$p10\",\"$p11\",\"$p12\",\"$p13\",\"$p14\",\"$p15\",\"$p16\",\"$p17\",\"$p18\",\"$p19\",\"$p20\",\"$masukan\")"; //echo $str; $qadd=new query(); $qadd->querydb($db,$str); $radd=$qadd->getrow(); $sent=true; //$tujuan="support@bamboomedia.net"; //include("surveyemail.php"); //include("surveyemailbm.php"); //sendmail_html($dari,$tujuan,$emailaddr,"Terimakasih (Bamboomedia)","",$msg); //sendmail_html("Pengunjung Web",$emailaddr,$tujuan,"Survey Produk","",$msg2); } } else { $wrongcaptcha="1"; } } ?>
Terimakasih atas partisipasi anda di survey ini.

"; } else { ?> Belum ada survey untuk saat ini!"; } else { ?>
Untuk berpartisipasi dalam Market-Survey ini, silahkan isi data Anda:
Nama :
Email :
Kota :
     


"; } else { //echo ""; } $a++; } ?>
$rsurvey[$var]
Produk Lain yang Anda Butuhkan :
Validasi :
Visual CAPTCHA

Ada Saran/Masukan lain ke kami? Klik disini...