•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 402,005 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,387 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 3195 | Replies: 3
![]() |
•
•
Join Date: Jun 2004
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
It is:
Parse error: parse error, unexpected ';' in Untitled-3 on line 93
Here is the code:
<?
include ("config.php");
include ("functii_mail.php");
db_connect($dbserver,$dbuser,$dbpass,$dbname);
//variabile lang
global $sign_up_title;
include ($lang);
if (is_banned($REMOTE_ADDR))
{
echo "IP banned!";
exit();
}
function inregistrare($nume,$password,$email,$sex,$sexuality,$personal_ad,$location,$country,
$age ,$birth_date,$zodia,$marital_status,$icq,$msn ,$web,$eyes_colour="",$hair_colour="",$weight=0,$height=0,
$music,$partner ,$question,$newsletter )
{
$sql="insert into users values (' ','$nume','$password',now(),' ','$email',0,'$sex','$sexuality','$personal_ad',
'$location','$country',
$age ,'$birth_date','$zodia','$marital_status','$icq','$msn' ,'$web','$eyes_colour','$hair_colour','$weight',
'$height','$music','$partner' ,'$question',0,0,$newsletter,0)";
$res_logger = mysql_query ($sql);
if (!$res_logger)
{
echo "An error occured in the logger.: \n";
echo mysql_error();
return FALSE;
}
else
{
return true;
}
}
function password_check($password1,$password2)
{
if ($password1==$password2 )
{
return TRUE;
}
ELSE
{
return FALSE;
echo $password_diferit;
}
}
function nume_check($nume)
{
if (empty($nume) )
{
return FALSE;
echo "nume gol";
}
ELSE
{
return TRUE;
}
}
function email_check($email,$email1)
{
if ($email==$email1)
{
return TRUE;
}
ELSE
{
return FALSE;
echo $email_diferit;
}
}
function user_check($nume)
{
if (gaseste_user_by_nick($nume)==0)
{
return TRUE;
echo "same user";
}
else
{
return FALSE;
}
}
function terms_check($terms)
{
if (isset($terms)&&$terms==1)
{
return TRUE;
}
else
{
return FALSE;
echo "termeni";
}
}
if (isset($Submit))
{
if (password_check($password,$password1) && nume_check($username) &&email_check($email,$email1) && user_check($username)&& terms_check($terms))
{
if (empty($personal_ad))
{
$personal_ad="";
}
if (empty($location))
{
$location="";
}
if (empty($age))
{
$age=0;
}
if (empty($icq))
{
$icq="";
}
if (empty($msn))
{
$msn="";
}
if (empty($web))
{
$web="";
}
if (empty($eyes_colour))
{
$eyes_colour="";
}
if (empty($hair_colour))
{
$hair_colour="";
}
if (empty($weight))
{
$weight=0;
}
if (empty($height))
{
$height=0;
}
if (empty($weight))
{
$weight=0;
}
if (empty($music))
{
$music="";
}
if (empty($partner))
{
$partner="";
}
if (empty($question))
{
$question="";
}
if (empty($newsletter))
{
$newsletter=0;
}
$birth_date=$ziua.'/'.$luna.'/'.$anul;
if (inregistrare($username,$password,$email,$sex,$sexuality,$personal_ad,$location,$country,
$age ,$birth_date,$zodia,$marital_status,$icq,$msn ,$web,$eyes_colour,$hair_colour,$weight,$height,
$music,$partner ,$question,$newsletter))
{
echo $register_success;
$mesaj=$visit_url." ".$url."check_mail.php?nume=$username&validate=".md5($username);
mail($email, $register_subj, $mesaj,"From:sales@meetwithsingles.com");
cautare_match($username,$sex,$sexuality,$location,$country, $zodia,$marital_status,$eyes_colour,$hair_colour,
$weight,$height, $music,$age );
echo $director="./gallery/$username";
mkdir ($director,0707);
?><script>window.location="content.php";</script><?
}
}
}
?>
<HTML>
<HEAD>
<TITLE>
<?=$sign_up_title?>
</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
} if (errors) alert('The following error(s) occurred:\n'+errors);
document.MM_returnValue = (errors == '');
}
//-->
</script>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<STYLE TYPE="TEXT/CSS">
<!--
A { text-decoration: none }
A {color:#0000CC; font-family: Helvetica, Arial; font-size: 12px; text-decoration: none;}
A:hover {color:#666600; font-family: Helvetica, Arial; font-size: 12px; text-decoration: none;}
td {font-family: Helvetica, Arial; font-size: 10px;}
.linkcell { padding-left: 10px; font-family: Helvetica, Arial; font-size: 10px;}
hr { color: #000000}
//.unnamed1 { font-family: Arial, Helvetica, sans-serif; font-size: small}
-->
</style>
<script language="JavaScript">
<!--
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[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
//-->
</script>
<script language="JavaScript">
<!--
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
//-->
</script>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table border="0" cellpadding="0" cellspacing="0" width="770" align="center">
<tr>
<td><img src="images/spacer.gif" width="63" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="21" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="35" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="42" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="7" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="9" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="53" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="19" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="32" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="39" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="13" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="4" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="42" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="19" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="24" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="29" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="6" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="41" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="19" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="52" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="15" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="25" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="16" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="26" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="53" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="65" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="1" border="0"></td>
</tr>
<tr>
<td colspan="19"><img name="index_r1_c1" src="images/index_r1_c1.gif" width="517" height="21" border="0"></td>
<td colspan="2"><a href="http://www.meetwithsingles.com"><img name="index_r1_c20" src="images/index_r1_c20.gif" width="53" height="21" border="0"></a></td>
<td colspan="3"><a href="http://www.meetwithsingles.com/terms.htm"><img name="index_r1_c22" src="images/index_r1_c22.gif" width="56" height="21" border="0"></a></td>
<td colspan="3"><a href="mailto:sales@meetwithsingles.com"><img name="index_r1_c25" src="images/index_r1_c25.gif" width="144" height="21" border="0"></a></td>
<td><img src="images/spacer.gif" width="1" height="21" border="0"></td>
</tr>
<tr>
<td><img name="index_r2_c1" src="images/index_r2_c1.gif" width="63" height="95" border="0"></td>
<td colspan="9" background="images/index_r2_c2.gif"><font face="Arial, Helvetica, sans-serif" size="4"><font color="#FFFFFF" size="5">Meet With Singles</font><b><font color="#FFFFFF"><br>
<font size="3">meetwithsingles.com </font></font></b></font></td>
<td rowspan="2" colspan="17"><object classid="clsid
27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="450" height="172">
<param name=movie value="1.swf">
<param name=quality value=high>
<embed src="1.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="450" height="172">
</embed>
</object></td>
<td><img src="images/spacer.gif" width="1" height="95" border="0"></td>
</tr>
<tr>
<td colspan="10"><img name="index_r3_c1" src="images/index_r3_c1.gif" width="320" height="77" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="77" border="0"></td>
</tr>
<tr>
<td colspan="2"><a href="my_account.php"><img name="index_r4_c1" src="images/index_r4_c1.gif" width="84" height="29" border="0"></a></td>
<td colspan="3"><a href="mesaje.php"><img name="index_r4_c3" src="images/index_r4_c3.gif" width="84" height="29" border="0"></a></td>
<td colspan="3"><a href="block.php"><img name="index_r4_c6" src="images/index_r4_c6.gif" width="81" height="29" border="0"></a></td>
<td colspan="3"><a href="buddy.php"><img name="index_r4_c9" src="images/index_r4_c9.gif" width="84" height="29" border="0"></a></td>
<td colspan="4"><a href="my_pictures.php"><img name="index_r4_c12" src="images/index_r4_c12.gif" width="89" height="29" border="0"></a></td>
<td colspan="3"><a href="edit_profile.php"><img name="index_r4_c16" src="images/index_r4_c16.gif" width="76" height="29" border="0"></a></td>
<td colspan="4"><a href="match_finder.php"><img name="index_r4_c19" src="images/index_r4_c19.gif" width="87" height="29" border="0"></a></td>
<td colspan="4"><a href="im.php"><img name="index_r4_c23" src="images/index_r4_c23.gif" width="120" height="29" border="0"></a></td>
<td><a href="logout.php"><img name="index_r4_c27" src="images/index_r4_c27.gif" width="65" height="29" border="0"></a></td>
<td><img src="images/spacer.gif" width="1" height="29" border="0"></td>
</tr>
<tr>
<td colspan="27" rowspan="13" background="images/index_r7_c1.gif" align="left" valign="top">
<table width="100%" border="0" cellspacing="3" cellpadding="3">
<tr>
<td valign="top" background="images/water_mark.gif" height="365"> <p><font size="1" face="Arial, Helvetica, sans-serif" color="#FFFFFF"><b><font color="#000000">
<form action="sign_up.php" method="get" name="form1" onSubmit="MM_validateForm('username','','R','weight','','NisNum','height','','NisNum','password','','R','password1','','R','email','','NisEmail');return document.MM_returnValue">
<p> <br>
<br>
<br>
</p>
<table width="724" border="0" cellspacing="0" cellpadding="1">
<tr>
<td width="201"><?echo $nume_users?><font color="#FF0000">* </font></td>
<td width="519"> <input name="username" type="text" id="username" maxlength="15"></td>
</tr>
<tr>
<td><?echo $password_text?><font color="#FF0000">* </font></td>
<td><input name="password" type="password" id="password"></td>
</tr>
<tr>
<td><?echo $password_text?><font color="#FF0000">* </font></td>
<td><input name="password1" type="password" id="password1"></td>
</tr>
<tr>
<td><?echo $email_text?><font color="#FF0000">* </font></td>
<td><input name="email" type="text" id="email"></td>
</tr>
<tr>
<td><?echo $email_text?><font color="#FF0000">* </font></td>
<td><input name="email1" type="text" id="email1"></td>
</tr>
<tr>
<td><?echo $sex_text?></td>
<td><select name="sex" id="sex">
<?
for ($i=0;$i<count($sex_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $sex_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $sex_array[$i]?></option>
<?
}
}
?>
</select> </td>
</tr>
<tr>
<td><?echo $sexuality_text?></td>
<td><select name="sexuality" id="sexuality">
<?
for ($i=0;$i<count($sexuality_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $sexuality_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $sexuality_array[$i]?></option>
<?
}
}
?>
</select></td>
</tr>
<tr>
<td><?echo $personal_ad_text?></td>
<td><textarea name="personal_ad" id="personal_ad"></textarea></td>
</tr>
<tr>
<td><?echo $location_text?></td>
<td><input name="location" type="text" id="location"></td>
</tr>
<tr>
<td><?echo $country_text?></td>
<td><select name="country" size="1" id="country">
<?
for ($i=0;$i<count($country_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $country_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $country_array[$i]?></option>
<?
}
}
?>
</select> </td>
</tr>
<tr>
<td><?echo $age_text?><font color="#FF0000">* </font></td>
<td><select name="age" id="age">
<?
for ($i=0;$i<count($age_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $age_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $age_array[$i]?></option>
<?
}
}
?>
</select> </td>
</tr>
<tr>
<td><?echo $birth_date_text?></td>
<td><select name="ziua" id="ziua">
<?
for ($i=0;$i<count($zile_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $zile_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $zile_array[$i]?></option>
<?
}
}
?>
</select> <select name="luna" id="luna">
<?
for ($i=0;$i<count($luna_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $luna_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $luna_array[$i]?></option>
<?
}
}
?>
</select> <select name="anul" id="anul">
<?
for ($i=0;$i<count($anul_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $anul_array[$i]?></option>
<?
}
else
{
?>
<option ><?echo $anul_array[$i]?></option>
<?
}
}
?>
</select> </td>
</tr>
<tr>
<td><?echo $zodia_text?></td>
<td><select name="zodia" id="zodia">
<?
for ($i=0;$i<count($zodia_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $zodia_array[$i]?></option>
<?
}
else
{
?>
<option ><?echo $zodia_array[$i]?></option>
<?
}
}
?>
</select> </td>
</tr>
<tr>
<td><?echo $marital_status_text?></td>
<td><select name="marital_status" id="marital_status">
<?
for ($i=0;$i<count($marital_status_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $marital_status_array[$i]?></option>
<?
}
else
{
?>
<option ><?echo $marital_status_array[$i]?></option>
<?
}
}
?>
</select> </td>
</tr>
<tr>
<td><?echo $icq_text?></td>
<td><input name="icq" type="text" id="icq"></td>
</tr>
<tr>
<td><?echo $msn_text?>l</td>
<td><input name="msn" type="text" id="msn"></td>
</tr>
<tr>
<td><?echo $web_text?></td>
<td><input name="web" type="text" id="web" value="http://"></td>
</tr>
<tr>
<td><?echo $eyes_colour_text?></td>
<td><select name="eyes_colour" id="select3">
<?
for ($i=0;$i<count($eyes_colour_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $eyes_colour_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $eyes_colour_array[$i]?></option>
<?
}
}
?>
</select></td>
</tr>
<tr>
<td><?echo $hair_colour_text?></td>
<td><select name="hair_colour" id="select4">
<?
for ($i=0;$i<count($hair_colour_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $hair_colour_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $hair_colour_array[$i]?></option>
<?
}
}
?>
</select></td>
</tr>
<tr>
<td height="26"><?echo $weight_text?></td>
<td><select name="weight" id="select5">
<?
for ($i=0;$i<count($weight_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $weight_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $weight_array[$i]?></option>
<?
}
}
?>
</select></td>
</tr>
<tr>
<td><?echo $height_text?></td>
<td><select name="height" id="select6">
<?
for ($i=0;$i<count($height_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $height_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $height_array[$i]?></option>
<?
}
}
?>
</select></td>
</tr>
<tr>
<td><?echo $music_text?></td>
<td><select name="music" id="music">
<?
for ($i=0;$i<count($music_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $music_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $music_array[$i]?></option>
<?
}
}
?>
</select></td>
</tr>
<tr>
<td><?echo $partner_text?></td>
<td><textarea name="partner" cols="40" id="partner"></textarea></td>
</tr>
<tr>
<td><?echo $question_text?></td>
<td><textarea name="question" cols="40" id="question"></textarea></td>
</tr>
<tr>
<td colspan="2"> <div align="left">
<input name="terms" type="checkbox" id="terms" value="1">
<?=$terms_text?>
<font color="#FF0000">* <a href="terms.htm">See Terms Here</a></font><br>
<input name="newsletter" type="checkbox" id="newsletter" value="1">
<?=$newsletter_text?>
</div></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="Submit">
</div></td>
</tr>
</table>
<p>- <br>
</p>
</form>
</font></b></font></td>
</tr>
</table>
</td>
<td><img src="images/spacer.gif" width="1" height="27" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="5" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="28" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="15" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="28" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="6" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="49" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="35" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="71" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="32" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="10" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="2" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td colspan="27"><img name="index_r18_c1" src="images/index_r18_c1.gif" width="770" height="4" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td colspan="27"><img name="index_r19_c1" src="images/index_r19_c1.gif" width="770" height="2" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="2" border="0"></td>
</tr>
<tr>
<td colspan="27"><img name="index_r20_c1" src="images/index_r20_c1.gif" width="770" height="4" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td colspan="27"><img name="index_r21_c1" src="images/index_r21_c1.gif" width="770" height="6" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="6" border="0"></td>
</tr>
<tr>
<td rowspan="2" colspan="27">
<div align="center"><a href="my_account.php"><img name="index_r22_c4" src="images/index_r22_c4.gif" width="58" height="15" border="0"></a><a href="mesaje.php"><img name="index_r22_c7" src="images/index_r22_c7.gif" width="53" height="15" border="0"></a><a href="block.php"><img name="index_r22_c8" src="images/index_r22_c8.gif" width="51" height="15" border="0"></a><a href="buddy.php"><img name="index_r22_c10" src="images/index_r22_c10.gif" width="56" height="15" border="0"></a><a href="my_pictures.php"><img name="index_r22_c13" src="images/index_r22_c13.gif" width="61" height="15" border="0"></a><a href="edit_profile.php"><img name="index_r22_c15" src="images/index_r22_c15.gif" width="53" height="15" border="0"></a><a href="match_finder.php"><img name="index_r22_c17" src="images/index_r22_c17.gif" width="67" height="15" border="0"></a><a href="logout.php"><img name="index_r22_c24" src="images/index_r22_c24.gif" width="42" height="15" border="0"></a>
<div align="center"><font face="Arial, Helvetica, sans-serif" size="2" color="#FFFFFF">Meet With Singles
Copyright 2003 All Rights Reserved.</font></div></div>
</td>
<td><img src="images/spacer.gif" width="1" height="15" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="35" border="0"></td>
</tr>
</table>
</body>
</html>
<?
mysql_close();
?>
Any help would be greatly appreciated, Thanks in advance
Parse error: parse error, unexpected ';' in Untitled-3 on line 93
Here is the code:
<?
include ("config.php");
include ("functii_mail.php");
db_connect($dbserver,$dbuser,$dbpass,$dbname);
//variabile lang
global $sign_up_title;
include ($lang);
if (is_banned($REMOTE_ADDR))
{
echo "IP banned!";
exit();
}
function inregistrare($nume,$password,$email,$sex,$sexuality,$personal_ad,$location,$country,
$age ,$birth_date,$zodia,$marital_status,$icq,$msn ,$web,$eyes_colour="",$hair_colour="",$weight=0,$height=0,
$music,$partner ,$question,$newsletter )
{
$sql="insert into users values (' ','$nume','$password',now(),' ','$email',0,'$sex','$sexuality','$personal_ad',
'$location','$country',
$age ,'$birth_date','$zodia','$marital_status','$icq','$msn' ,'$web','$eyes_colour','$hair_colour','$weight',
'$height','$music','$partner' ,'$question',0,0,$newsletter,0)";
$res_logger = mysql_query ($sql);
if (!$res_logger)
{
echo "An error occured in the logger.: \n";
echo mysql_error();
return FALSE;
}
else
{
return true;
}
}
function password_check($password1,$password2)
{
if ($password1==$password2 )
{
return TRUE;
}
ELSE
{
return FALSE;
echo $password_diferit;
}
}
function nume_check($nume)
{
if (empty($nume) )
{
return FALSE;
echo "nume gol";
}
ELSE
{
return TRUE;
}
}
function email_check($email,$email1)
{
if ($email==$email1)
{
return TRUE;
}
ELSE
{
return FALSE;
echo $email_diferit;
}
}
function user_check($nume)
{
if (gaseste_user_by_nick($nume)==0)
{
return TRUE;
echo "same user";
}
else
{
return FALSE;
}
}
function terms_check($terms)
{
if (isset($terms)&&$terms==1)
{
return TRUE;
}
else
{
return FALSE;
echo "termeni";
}
}
if (isset($Submit))
{
if (password_check($password,$password1) && nume_check($username) &&email_check($email,$email1) && user_check($username)&& terms_check($terms))
{
if (empty($personal_ad))
{
$personal_ad="";
}
if (empty($location))
{
$location="";
}
if (empty($age))
{
$age=0;
}
if (empty($icq))
{
$icq="";
}
if (empty($msn))
{
$msn="";
}
if (empty($web))
{
$web="";
}
if (empty($eyes_colour))
{
$eyes_colour="";
}
if (empty($hair_colour))
{
$hair_colour="";
}
if (empty($weight))
{
$weight=0;
}
if (empty($height))
{
$height=0;
}
if (empty($weight))
{
$weight=0;
}
if (empty($music))
{
$music="";
}
if (empty($partner))
{
$partner="";
}
if (empty($question))
{
$question="";
}
if (empty($newsletter))
{
$newsletter=0;
}
$birth_date=$ziua.'/'.$luna.'/'.$anul;
if (inregistrare($username,$password,$email,$sex,$sexuality,$personal_ad,$location,$country,
$age ,$birth_date,$zodia,$marital_status,$icq,$msn ,$web,$eyes_colour,$hair_colour,$weight,$height,
$music,$partner ,$question,$newsletter))
{
echo $register_success;
$mesaj=$visit_url." ".$url."check_mail.php?nume=$username&validate=".md5($username);
mail($email, $register_subj, $mesaj,"From:sales@meetwithsingles.com");
cautare_match($username,$sex,$sexuality,$location,$country, $zodia,$marital_status,$eyes_colour,$hair_colour,
$weight,$height, $music,$age );
echo $director="./gallery/$username";
mkdir ($director,0707);
?><script>window.location="content.php";</script><?
}
}
}
?>
<HTML>
<HEAD>
<TITLE>
<?=$sign_up_title?>
</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
} if (errors) alert('The following error(s) occurred:\n'+errors);
document.MM_returnValue = (errors == '');
}
//-->
</script>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<STYLE TYPE="TEXT/CSS">
<!--
A { text-decoration: none }
A {color:#0000CC; font-family: Helvetica, Arial; font-size: 12px; text-decoration: none;}
A:hover {color:#666600; font-family: Helvetica, Arial; font-size: 12px; text-decoration: none;}
td {font-family: Helvetica, Arial; font-size: 10px;}
.linkcell { padding-left: 10px; font-family: Helvetica, Arial; font-size: 10px;}
hr { color: #000000}
//.unnamed1 { font-family: Arial, Helvetica, sans-serif; font-size: small}
-->
</style>
<script language="JavaScript">
<!--
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[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
//-->
</script>
<script language="JavaScript">
<!--
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
//-->
</script>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table border="0" cellpadding="0" cellspacing="0" width="770" align="center">
<tr>
<td><img src="images/spacer.gif" width="63" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="21" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="35" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="42" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="7" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="9" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="53" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="19" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="32" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="39" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="13" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="4" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="42" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="19" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="24" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="29" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="6" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="41" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="19" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="52" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="15" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="25" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="16" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="26" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="53" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="65" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="1" border="0"></td>
</tr>
<tr>
<td colspan="19"><img name="index_r1_c1" src="images/index_r1_c1.gif" width="517" height="21" border="0"></td>
<td colspan="2"><a href="http://www.meetwithsingles.com"><img name="index_r1_c20" src="images/index_r1_c20.gif" width="53" height="21" border="0"></a></td>
<td colspan="3"><a href="http://www.meetwithsingles.com/terms.htm"><img name="index_r1_c22" src="images/index_r1_c22.gif" width="56" height="21" border="0"></a></td>
<td colspan="3"><a href="mailto:sales@meetwithsingles.com"><img name="index_r1_c25" src="images/index_r1_c25.gif" width="144" height="21" border="0"></a></td>
<td><img src="images/spacer.gif" width="1" height="21" border="0"></td>
</tr>
<tr>
<td><img name="index_r2_c1" src="images/index_r2_c1.gif" width="63" height="95" border="0"></td>
<td colspan="9" background="images/index_r2_c2.gif"><font face="Arial, Helvetica, sans-serif" size="4"><font color="#FFFFFF" size="5">Meet With Singles</font><b><font color="#FFFFFF"><br>
<font size="3">meetwithsingles.com </font></font></b></font></td>
<td rowspan="2" colspan="17"><object classid="clsid
27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="450" height="172"><param name=movie value="1.swf">
<param name=quality value=high>
<embed src="1.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="450" height="172">
</embed>
</object></td>
<td><img src="images/spacer.gif" width="1" height="95" border="0"></td>
</tr>
<tr>
<td colspan="10"><img name="index_r3_c1" src="images/index_r3_c1.gif" width="320" height="77" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="77" border="0"></td>
</tr>
<tr>
<td colspan="2"><a href="my_account.php"><img name="index_r4_c1" src="images/index_r4_c1.gif" width="84" height="29" border="0"></a></td>
<td colspan="3"><a href="mesaje.php"><img name="index_r4_c3" src="images/index_r4_c3.gif" width="84" height="29" border="0"></a></td>
<td colspan="3"><a href="block.php"><img name="index_r4_c6" src="images/index_r4_c6.gif" width="81" height="29" border="0"></a></td>
<td colspan="3"><a href="buddy.php"><img name="index_r4_c9" src="images/index_r4_c9.gif" width="84" height="29" border="0"></a></td>
<td colspan="4"><a href="my_pictures.php"><img name="index_r4_c12" src="images/index_r4_c12.gif" width="89" height="29" border="0"></a></td>
<td colspan="3"><a href="edit_profile.php"><img name="index_r4_c16" src="images/index_r4_c16.gif" width="76" height="29" border="0"></a></td>
<td colspan="4"><a href="match_finder.php"><img name="index_r4_c19" src="images/index_r4_c19.gif" width="87" height="29" border="0"></a></td>
<td colspan="4"><a href="im.php"><img name="index_r4_c23" src="images/index_r4_c23.gif" width="120" height="29" border="0"></a></td>
<td><a href="logout.php"><img name="index_r4_c27" src="images/index_r4_c27.gif" width="65" height="29" border="0"></a></td>
<td><img src="images/spacer.gif" width="1" height="29" border="0"></td>
</tr>
<tr>
<td colspan="27" rowspan="13" background="images/index_r7_c1.gif" align="left" valign="top">
<table width="100%" border="0" cellspacing="3" cellpadding="3">
<tr>
<td valign="top" background="images/water_mark.gif" height="365"> <p><font size="1" face="Arial, Helvetica, sans-serif" color="#FFFFFF"><b><font color="#000000">
<form action="sign_up.php" method="get" name="form1" onSubmit="MM_validateForm('username','','R','weight','','NisNum','height','','NisNum','password','','R','password1','','R','email','','NisEmail');return document.MM_returnValue">
<p> <br>
<br>
<br>
</p>
<table width="724" border="0" cellspacing="0" cellpadding="1">
<tr>
<td width="201"><?echo $nume_users?><font color="#FF0000">* </font></td>
<td width="519"> <input name="username" type="text" id="username" maxlength="15"></td>
</tr>
<tr>
<td><?echo $password_text?><font color="#FF0000">* </font></td>
<td><input name="password" type="password" id="password"></td>
</tr>
<tr>
<td><?echo $password_text?><font color="#FF0000">* </font></td>
<td><input name="password1" type="password" id="password1"></td>
</tr>
<tr>
<td><?echo $email_text?><font color="#FF0000">* </font></td>
<td><input name="email" type="text" id="email"></td>
</tr>
<tr>
<td><?echo $email_text?><font color="#FF0000">* </font></td>
<td><input name="email1" type="text" id="email1"></td>
</tr>
<tr>
<td><?echo $sex_text?></td>
<td><select name="sex" id="sex">
<?
for ($i=0;$i<count($sex_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $sex_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $sex_array[$i]?></option>
<?
}
}
?>
</select> </td>
</tr>
<tr>
<td><?echo $sexuality_text?></td>
<td><select name="sexuality" id="sexuality">
<?
for ($i=0;$i<count($sexuality_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $sexuality_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $sexuality_array[$i]?></option>
<?
}
}
?>
</select></td>
</tr>
<tr>
<td><?echo $personal_ad_text?></td>
<td><textarea name="personal_ad" id="personal_ad"></textarea></td>
</tr>
<tr>
<td><?echo $location_text?></td>
<td><input name="location" type="text" id="location"></td>
</tr>
<tr>
<td><?echo $country_text?></td>
<td><select name="country" size="1" id="country">
<?
for ($i=0;$i<count($country_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $country_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $country_array[$i]?></option>
<?
}
}
?>
</select> </td>
</tr>
<tr>
<td><?echo $age_text?><font color="#FF0000">* </font></td>
<td><select name="age" id="age">
<?
for ($i=0;$i<count($age_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $age_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $age_array[$i]?></option>
<?
}
}
?>
</select> </td>
</tr>
<tr>
<td><?echo $birth_date_text?></td>
<td><select name="ziua" id="ziua">
<?
for ($i=0;$i<count($zile_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $zile_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $zile_array[$i]?></option>
<?
}
}
?>
</select> <select name="luna" id="luna">
<?
for ($i=0;$i<count($luna_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $luna_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $luna_array[$i]?></option>
<?
}
}
?>
</select> <select name="anul" id="anul">
<?
for ($i=0;$i<count($anul_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $anul_array[$i]?></option>
<?
}
else
{
?>
<option ><?echo $anul_array[$i]?></option>
<?
}
}
?>
</select> </td>
</tr>
<tr>
<td><?echo $zodia_text?></td>
<td><select name="zodia" id="zodia">
<?
for ($i=0;$i<count($zodia_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $zodia_array[$i]?></option>
<?
}
else
{
?>
<option ><?echo $zodia_array[$i]?></option>
<?
}
}
?>
</select> </td>
</tr>
<tr>
<td><?echo $marital_status_text?></td>
<td><select name="marital_status" id="marital_status">
<?
for ($i=0;$i<count($marital_status_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $marital_status_array[$i]?></option>
<?
}
else
{
?>
<option ><?echo $marital_status_array[$i]?></option>
<?
}
}
?>
</select> </td>
</tr>
<tr>
<td><?echo $icq_text?></td>
<td><input name="icq" type="text" id="icq"></td>
</tr>
<tr>
<td><?echo $msn_text?>l</td>
<td><input name="msn" type="text" id="msn"></td>
</tr>
<tr>
<td><?echo $web_text?></td>
<td><input name="web" type="text" id="web" value="http://"></td>
</tr>
<tr>
<td><?echo $eyes_colour_text?></td>
<td><select name="eyes_colour" id="select3">
<?
for ($i=0;$i<count($eyes_colour_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $eyes_colour_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $eyes_colour_array[$i]?></option>
<?
}
}
?>
</select></td>
</tr>
<tr>
<td><?echo $hair_colour_text?></td>
<td><select name="hair_colour" id="select4">
<?
for ($i=0;$i<count($hair_colour_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $hair_colour_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $hair_colour_array[$i]?></option>
<?
}
}
?>
</select></td>
</tr>
<tr>
<td height="26"><?echo $weight_text?></td>
<td><select name="weight" id="select5">
<?
for ($i=0;$i<count($weight_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $weight_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $weight_array[$i]?></option>
<?
}
}
?>
</select></td>
</tr>
<tr>
<td><?echo $height_text?></td>
<td><select name="height" id="select6">
<?
for ($i=0;$i<count($height_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $height_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $height_array[$i]?></option>
<?
}
}
?>
</select></td>
</tr>
<tr>
<td><?echo $music_text?></td>
<td><select name="music" id="music">
<?
for ($i=0;$i<count($music_array);$i++)
{
if ($i==0)
{
?>
<option selected><?echo $music_array[$i]?></option>
<?
}
else
{
?>
<option><?echo $music_array[$i]?></option>
<?
}
}
?>
</select></td>
</tr>
<tr>
<td><?echo $partner_text?></td>
<td><textarea name="partner" cols="40" id="partner"></textarea></td>
</tr>
<tr>
<td><?echo $question_text?></td>
<td><textarea name="question" cols="40" id="question"></textarea></td>
</tr>
<tr>
<td colspan="2"> <div align="left">
<input name="terms" type="checkbox" id="terms" value="1">
<?=$terms_text?>
<font color="#FF0000">* <a href="terms.htm">See Terms Here</a></font><br>
<input name="newsletter" type="checkbox" id="newsletter" value="1">
<?=$newsletter_text?>
</div></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="Submit">
</div></td>
</tr>
</table>
<p>- <br>
</p>
</form>
</font></b></font></td>
</tr>
</table>
</td>
<td><img src="images/spacer.gif" width="1" height="27" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="5" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="28" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="15" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="28" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="6" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="49" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="35" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="71" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="32" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="10" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="2" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td colspan="27"><img name="index_r18_c1" src="images/index_r18_c1.gif" width="770" height="4" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td colspan="27"><img name="index_r19_c1" src="images/index_r19_c1.gif" width="770" height="2" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="2" border="0"></td>
</tr>
<tr>
<td colspan="27"><img name="index_r20_c1" src="images/index_r20_c1.gif" width="770" height="4" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td colspan="27"><img name="index_r21_c1" src="images/index_r21_c1.gif" width="770" height="6" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="6" border="0"></td>
</tr>
<tr>
<td rowspan="2" colspan="27">
<div align="center"><a href="my_account.php"><img name="index_r22_c4" src="images/index_r22_c4.gif" width="58" height="15" border="0"></a><a href="mesaje.php"><img name="index_r22_c7" src="images/index_r22_c7.gif" width="53" height="15" border="0"></a><a href="block.php"><img name="index_r22_c8" src="images/index_r22_c8.gif" width="51" height="15" border="0"></a><a href="buddy.php"><img name="index_r22_c10" src="images/index_r22_c10.gif" width="56" height="15" border="0"></a><a href="my_pictures.php"><img name="index_r22_c13" src="images/index_r22_c13.gif" width="61" height="15" border="0"></a><a href="edit_profile.php"><img name="index_r22_c15" src="images/index_r22_c15.gif" width="53" height="15" border="0"></a><a href="match_finder.php"><img name="index_r22_c17" src="images/index_r22_c17.gif" width="67" height="15" border="0"></a><a href="logout.php"><img name="index_r22_c24" src="images/index_r22_c24.gif" width="42" height="15" border="0"></a>
<div align="center"><font face="Arial, Helvetica, sans-serif" size="2" color="#FFFFFF">Meet With Singles
Copyright 2003 All Rights Reserved.</font></div></div>
</td>
<td><img src="images/spacer.gif" width="1" height="15" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="1" height="35" border="0"></td>
</tr>
</table>
</body>
</html>
<?
mysql_close();
?>
Any help would be greatly appreciated, Thanks in advance
•
•
Join Date: Feb 2002
Location: Long Island, NY
Posts: 1,134
Reputation:
Rep Power: 12
Solved Threads: 1
Try pasting line 93 with ten lines of code before and after. Don't paste the entire thing, it's too time consuming to scan through. It seems there's an error involving a semicolon, but you'll have to post the code, just like I said.
Also, use the PHP tags for this forum. It'll make it clearer.
Also, use the PHP tags for this forum. It'll make it clearer.
_.:: my websites ::._
blog @ www.samaru.net * engi No Jutsu @ www.narutorp.net * portfolio @ shinylight.com
deviantART: inscissor
blog @ www.samaru.net * engi No Jutsu @ www.narutorp.net * portfolio @ shinylight.com
deviantART: inscissor
•
•
Join Date: Jun 2004
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Here is shortened version:
}
function user_check($nume)
{
if (gaseste_user_by_nick($nume)==0)
{
return TRUE;
echo "same user";
}
else
{
return FALSE;
}
}
function terms_check($terms)
{
if (isset($terms)&&$terms==1) --------> line 93
{
return TRUE;
}
else
{
return FALSE;
echo "termeni";
}
}
if (isset($Submit))
{
if (password_check($password,$password1) && nume_check($username) &&email_check($email,$email1) && user_check($username)&& terms_check($terms))
{
if (empty($personal_ad))
{
$personal_ad="";
}
if (empty($location))
{
$location="";
}
if (empty($age))
{
$age=0;
}
thanks again!
}
function user_check($nume)
{
if (gaseste_user_by_nick($nume)==0)
{
return TRUE;
echo "same user";
}
else
{
return FALSE;
}
}
function terms_check($terms)
{
if (isset($terms)&&$terms==1) --------> line 93
{
return TRUE;
}
else
{
return FALSE;
echo "termeni";
}
}
if (isset($Submit))
{
if (password_check($password,$password1) && nume_check($username) &&email_check($email,$email1) && user_check($username)&& terms_check($terms))
{
if (empty($personal_ad))
{
$personal_ad="";
}
if (empty($location))
{
$location="";
}
if (empty($age))
{
$age=0;
}
thanks again!
•
•
Join Date: Jun 2004
Location: Worcester, Massachusetts
Posts: 180
Reputation:
Rep Power: 5
Solved Threads: 3
jcates23,
I know what your bug is. You are using the HTML entity for ampersand instead of "&", the correct notation
. PHP does not convert HTML entities to ordinal characters before parsing. Your line 93 should read:
[PHP]
if (isset($terms) && $terms == 1)
[/PHP]
Note: I usually separate terms with parenthesis before boolean math:
[PHP]
if ((isset($terms)) && ($terms == 1))
[/PHP]
You'll notice that you've used the & HTML entity in several places. If you don't change them all, another parse error will occur later on.l
I know what your bug is. You are using the HTML entity for ampersand instead of "&", the correct notation
. PHP does not convert HTML entities to ordinal characters before parsing. Your line 93 should read:[PHP]
if (isset($terms) && $terms == 1)
[/PHP]
Note: I usually separate terms with parenthesis before boolean math:
[PHP]
if ((isset($terms)) && ($terms == 1))
[/PHP]
You'll notice that you've used the & HTML entity in several places. If you don't change them all, another parse error will occur later on.l
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Help. Parse error in PHP code (PHP)
- PHP Parse error: parse error, unexpected T_STRING (PHP)
- Parse error: parse error, unexpected T_STRING in /home/thei2k9/public_html/includes/f (PHP)
- Need Help With Parse Error... (PHP)
- Parse Error message when testing page on browser - HELP!! (PHP)
- Parse error: (PHP)
- Parse error, syntax error, Forbids declaration (C++)
Other Threads in the PHP Forum
- Previous Thread: searching multiple fields
- Next Thread: Problem with foreach when using linking



Linear Mode