waduh udh ngantuk nih..pukul 1:15
sebelum njelasin back-end systemnya lebih lanjut, aq posting scriptnya aja dulu. @sari : aq udh jelasin sedikit tentang java script di postingan sebelum ini :
<? require “database/dbbisnis.php”;?>
<html><head>
<meta http-equiv=”Content-Language” content=”en-us”>
<meta name=”GENERATOR” content=”Microsoft FrontPage 5.0″>
<meta name=”ProgId” content=”FrontPage.Editor.Document”>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
<title>Terimakasih</title>
<script charset=”utf-8″ id=”injection_graph_func” src=”image/injection_graph_func.js”></script></head>
<body>
<table style=”border-collapse: collapse;” id=”AutoNumber1″ border=”0″ bordercolor=”#111111″ cellpadding=”0″ cellspacing=”0″ width=”100%” height=”596″>
<tbody><tr>
<td valign=”top” width=”100%” height=”295″>
<p align=”center”><b><font size=”4″ face=”Verdana”>TERIMA
KASIH, FREE REPORT SUDAH TERKIRIM KE EMAIL ANDA…<br>
Jika tidak ditemukan di Inbox, silakan periksa di BULK folder. </font></b></p>
<p align=”center”><b><font size=”4″ face=”Verdana”><u><font size=”2″>Q</font></u></font></b><font face=”Verdana”><u><b><font size=”2″>ARROBIN
DJUTI, SKOM.<br>
</font></b></u></font></p>
<?php
require “connections/bisnis.php”;
require “database/dbbisnis.php”;
?>
<?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = “”, $theNotDefinedValue = “”)
{
$theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;
switch ($theType) {
case “text”:
$theValue = ($theValue != “”) ? “‘” . $theValue . “‘” : “NULL”;
break;
case “long”:
case “int”:
$theValue = ($theValue != “”) ? intval($theValue) : “NULL”;
break;
case “double”:
$theValue = ($theValue != “”) ? “‘” . doubleval($theValue) . “‘” : “NULL”;
break;
case “date”:
$theValue = ($theValue != “”) ? “‘” . $theValue . “‘” : “NULL”;
break;
case “defined”:
$theValue = ($theValue != “”) ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
$editFormAction = $HTTP_SERVER_VARS['PHP_SELF'];
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
$editFormAction .= “?” . $HTTP_SERVER_VARS['QUERY_STRING'];
}
if ((isset($HTTP_POST_VARS["MM_insert"])) && ($HTTP_POST_VARS["MM_insert"] == “form1″)) {
$insertSQL = sprintf(“INSERT INTO subribe (nama, email) VALUES (%s, %s)”,
GetSQLValueString($HTTP_POST_VARS['nama'], “text”),
GetSQLValueString($HTTP_POST_VARS['email'], “text”));
mysql_select_db($database_bisnis, $bisnis);
$Result1 = mysql_query($insertSQL, $bisnis) or die(mysql_error());
$insertGoTo = “klik1.php”;
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, ‘?’)) ? “&” : “?”;
$insertGoTo .= $HTTP_SERVER_VARS['QUERY_STRING'];}}
$colname_peme = “1″;
if (isset($HTTP_SESSION_VARS['subribe'])) {
$colname_peme = (get_magic_quotes_gpc()) ? $HTTP_SESSION_VARS['subribe'] : addslashes($HTTP_SESSION_VARS['subribe']);
}
mysql_select_db($database_bisnis, $bisnis);
$query_peme = sprintf(“SELECT * FROM `subribe` WHERE nama = ‘”.$_POST['nama'].”‘”, $colname_peme);
$peme = mysql_query($query_peme, $bisnis) or die(mysql_error());
$row_peme = mysql_fetch_assoc($peme);
$totalRows_peme = mysql_num_rows($peme);
// kode autorespon
// autorespon untuk pemesan
$aemailpemesan = “Dear “.$row_peme['nama'].”,\n\nTerima kasih atas respon anda.\nIni adalah Report yang saya janjikan.\n\n”
.”http://rahasiamesinuangotomatis.com/popup/cara_daftar_adsense.pdf”;
mail($row_peme['email'], “terkirim ke pemesan!”,$aemailpemesan , “From:”.$emailinfo.”\nReply-To:”.$emailinfo.”\n”);
?>
</td>
</tr>
<tr>
<td width=”100%” height=”301″> </td>
</tr>
</tbody></table>
<meta http-equiv=’refresh’ content=’6; URL=klik1.php’>
</body></html>