الموضوع يا جماعه بكل بساطه انى عامل موقع ممعين بس فيه صفحة عامله لى قلق دائم المفروض انى بعمل ريجستير لأكونت جديد المفروض ان صفحة الاستقبال بتطلع رسالة ترحيب اول ما يبقى تخزن البيانات فى قاعدة اليبانات لكن هيا دايما بتطلع رسالة خطا انا حاولت ابص على الكود لكن مش لاقى حاجة ممكن تعمل فى الصفحة بالشكل ده فياريت لو حد شاف ان الصفحة فيها غلط يقولى الغلط فين وتصحيحه ايه وياريت بسرعة بعد اذنكم وشكرا
المفروض ان دى صفحة الاستقبال اللى فيها الخطأ
<?php
if (!isset($_SERVER[php_AUTH_USER])) {
// If empty, send header causing dialog box to appear
header('WWW-Authenticate: Basic realm="My Private Stuff"');
header('HTTP/1.0 401 Unauthorized');
echo 'Authorization Required.';
exit;
}else{
$con = mysql_connect("localhost","root","")or die("Not able to connect to host");
$db = mysql_select_db("domain_info",$con) or die("Not able to connect to database");
$sql = "select * from log_info where user='$_SERVER[php_AUTH_USER]' && pass= '$_SERVER[php_AUTH_PW]'";
$result = mysql_query($sql,$con);
if ($result){
if(mysql_num_rows($result)!==1){
header("location:http://localhost/domain_pro/start.php");
exit;
}
}
mysql_close($con);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script Language="JavaScript" Type="Text/JavaScript">
<!--
//Made by Yaldex StatusTitle Maker
//http://www.yaldex.com
//Come and get more (free) products
document.title="Nileweb Domain Service";
fdsqwa = "Welcome to Nileweb Domain services ~";
fdshja = 100;
fdsuia = 700;
fdszxa=24;
fdsrta=1;
fdsopa = "\xa0";
function fdsrma(fdseja) {Fdszxa=fdszxa+6;fDszxa=fdszxa+Fdszxa; fdSzxa=fdszxa+Fdszxa+fDszxa; fdsZxa=fdSzxa/fDszxa*fdszxa; fdszXa=fDszxa*fdszxa/12*Fdszxa; fdszxA=fdszxa+Fdszxa/fdsZxa-16*fdSzxa; fdsxza=fdszXa*(fdszxa-5)/fDszxa+fdSzxa;Fdsxza=fdsxza/fdszxA+fdszxa*fDszxa-fdSzxa;fDsxza=(Fdsxza+fdszxa/fDszxa*fdSzxa+Fdszxa*fdsZxa)/fdszXa+fdsxza-Fdsxza-1;fdSxza=Math.floor(fDsxza);fdsXza=fdSxza-2*Fdszxa+1;if (fdsqwa.charAt(fdseja) != '~') {fdsopa = fdsopa + fdsqwa.charAt(fdseja);
window.status = fdsopa;
fdspwa = fdshja;} else {
fdspwa = fdsuia;fdsopa = "\xa0";
if (fdseja == fdsqwa.length-fdsXza) fdseja = -1;}fdseja++;
setTimeout("fdsrma('"+fdseja+"')",fdspwa);
}
fdsrma(0);
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<title>MyFreeTemplates.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="Keywords here">
<meta name="description" content="Description here">
<meta name="Author" content="MyFreeTemplates.com">
<META NAME="robots" CONTENT="index, follow"> <!-- (Robot commands: All, None, Index, No Index, Follow, No Follow) -->
<META NAME="revisit-after" CONTENT="30 days">
<META NAME="distribution" CONTENT="global">
<META NAME="rating" CONTENT="general">
<META NAME="Content-Language" CONTENT="english">
<script language="JavaScript" type="text/JavaScript" src="images/myfreetemplates.js"></script>
<link href="images/myfreetemplates.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
color:#FF6699;
font-size: 12px;
font-weight: bold;
}
.style5 {
font-size: 13px;
color:#FFFFFF;
}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../images/btn_home_dn.jpg')">
<?php
if( (!'$_POST[name]') || (!'$_POST[n_serial]') || (!'$_POST[c_serial]') || (!'$_POST[c_name]') || (!'$_POST[phone] '))
{
header("location: http://localhost/domain_pro/reg.php");
exit;
}
?>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="87"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="342" rowspan="2" style="m"><div align="center"><?php echo"welcome <strong> $_SERVER[php_AUTH_USER]</strong>"; ?></div></td>
<td width="34" rowspan="2"><img src="../images/topmidspace.jpg" width="34" height="87"></td>
<td background="images/topbg.jpg"><img src="../images/topbg.jpg" width="1" height="54" border="0" usemap="#Map"></td>
</tr>
<tr>
<td height="33" background="images/topnavbg.jpg"><img src="../images/btn_home.jpg" name="btn_home" width="55" height="33" border="0" usemap="#btn_homeMap" id="btn_home" onMouseOver="MM_swapImage('btn_home','','../images/btn_home_dn.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="../images/navspacer.jpg" width="1" height="33"></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" background="images/topnavbg.jpg">
<tr>
<td height="9" colspan="2" background="../images/basebg2.jpg"><img src="../images/basebg2.jpg" width="1" height="1"></td>
</tr>
<tr>
<td width="220" rowspan="2" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"> </td>
</tr>
<tr>
<td><p><img src="../images/arrow.jpg" width="20" height="10"><span class="style1">Services</span></p></td></tr>
<tr><td>
<p><strong><ul>
<li class="sidelinks style5"><a href="../reg.php" class="sidelinks style5">Register new domain</a></span></li>
<br>
<li class="sidelinks style5"><a href="../renew.php" class="sidelinks style5">Renew domain</a></li>
<br>
<li class="sidelinks style5"><a href="../renew_ex.php" class="sidelinks style5">Renew expired domain</a></li>
<br>
<li class="sidelinks style5"><a href="../info.php" class="sidelinks style5">Show domain info</a></li>
<br>
<li class="sidelinks style5"><a href="../edit_info.php" class="sidelinks style5">Edit domain info</a></li>
<br>
<li class="sidelinks style5"><a href="../show_all.php" class="sidelinks style5">Show all domains info</a></li>
<br>
<li class="sidelinks style5"><a href="../send.php" class="sidelinks style5">Send ticket</a></span></li>
<br>
</ul></strong></p>
<tr>
<td><img src="../images/spacer.gif" width="1" height="1"></td>
</tr>
</table></td>
<td valign="top" bgcolor="#FFFFFF">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="29" colspan="3" background="../images/navbasebg.jpg"><img src="../images/navbasebg.jpg" width="1" height="29"></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><?php
if ( ('$_POST[n_serial]') == ('$_POST[c_serial]') ){
$conn = @ mysql_connect("localhost","root","");
$db = @ mysql_select_db("domain_info",$conn);
$sql = "INSERT INTO domains vlaues('$_POST[name]' , '$_POST[master]' , '$_POST[l_check]' , '$_POST[type]' , '$_POST[n_serial]' , '$_POST[account]' ,'$_POST[c_name]' , '$_POST[c_title]' ,'$_POST[company]' , '$_POST[adress]' , '$_POST[phone]' , '$_POST[country]' , '$_POST' )";
$result = mysql_query($sql,$conn);
echo " Registeration complete ";
{echo"Wrong regesitration method please<a href=\"http://localhost/domain_pro/reg.php\"> go back</a> and register again" ;}
<td height="26" class="baseline"> </td>
<td align="right" class="baseline"> </td>
<map name="Map"><area shape="rect" coords="-10,52,50,86" href="#"></map>
<map name="btn_homeMap"><area shape="rect" coords="1,1,52,30" href="../index.php">
