PHP Help needed

Fresco Shashank

New Arrival
Joined
Apr 27, 2012
Messages
9
Reaction score
0
FP$
6
Hi guy i have a script which works with referral link. If a user uses the referral link and register in the site he will be under the referral id. But now i don't won't like that. I want in such a way that user can enter the referral username at the registration form.

Here the the function file

Code:
<?php
class Model_MRegister
{
	function showRegister($country_values)
	{
		$country="SELECT * FROM ajmatrix_country_master_table";
		$obj=new Bin_Query();
		$obj->executeQuery($country);
		srand();
		$verifycode=substr(md5(rand(0,100000)),0,5);
		return Display_DRegister::showRegister($obj->records,$verifycode,$country_values);
		
	}
	
	function checkSponsorStatus()
	{
		$sponsorname = $_SESSION['intro_name'];
		$query="select * from ajmatrix_members_table where members_username='$sponsorname' and members_verified=1 and members_status=1 and members_account_status=1";
		$obj=new Bin_Query();		
		
		if($obj->executeQuery($query))
		{
			//Checking for Force matrix or Cycling marix
			$sql="SELECT * from ajmatrix_networksettings_table";
			$qry = new Bin_Query();
			$qry->executeQuery($sql);	
			$matrix_type=$qry->records[0]['networksettings_matrix_type'];

			if($matrix_type == 'normal')
			{
				$flag = Model_MSpillover::checkLevelComp($obj->records[0]['members_id']);
			}
			else if($matrix_type == 'cycle')
			{
				// For checking Next cycle is available in ajmatrix_cycle_table or empty
				/*
				$obj_select= new Bin_Query();
				$select="select * from ajmatrix_members_table where members_id=".$obj->records[0]['members_id'];
				$obj_select->executeQuery($select);
				$curr_cyc_id=$obj_select->records[0]['current_cycle_id'];
				
				if($curr_cyc_id == 0)	
				{
					$flag = Model_MSpillover::checkLevelComp($obj->records[0]['members_id']);
				}
				else if($curr_cyc_id != 0)
				{
					$flag = Model_MSpilloverCycle::checkLevelComp($obj->records[0]['members_id']);	
				}
				*/
				$flag = Model_MSpilloverCycle::checkLevelComp($obj->records[0]['members_id']);
			}
			if($flag==1)
			{	
				$_SESSION['intro_name_id'] = $obj->records[0]['members_id'];
				return $obj->records[0]['members_username'];
			}
			elseif ($flag==0)	
			{
				unset($_SESSION['intro_name_id']);		
				unset($_SESSION['intro_name']);		
				//if($matrix_type == 'normal')
				//{		
					$output = '<div style="color:#FF0000;text-decoration:blink;" >The Referrer '.ucwords($obj->records[0]['members_username']).' Level Was Completed. <br/> You will be added as an Direct Member Only.</div>';
					return $output;
				//}
				//else if($matrix_type == 'cycle')
				//{		
					//$output = '<div style="color:#FF0000;text-decoration:blink;" >The Referrer '.ucwords($obj->records[0]['members_username']).' Reached the Maximum Cycle. <br/> Admin has to add Next Cycle otherwise You will be added as an Direct Member Only.</div>';
					//return $output;
				//}
			}
		}	
		else
		{
		unset($_SESSION['intro_name_id']);		
		return false;
		}
	}
	
	
	
	function insertmember()
	{		
			
		$username=$_POST['txtusername'];
		$pwd=$_POST['txtpassword'];
 		$password=md5(md5($_POST['txtpassword']));
		//$password=base64_encode(trim($_POST['txtpassword']));
		$repassword=$_POST['txtrepassword'];
		$email=$_POST['txtemail'];
		$firstname=$_POST['txtfirstname'];
		$lastname=$_POST['txtlastname'];
		$address=htmlentities($_POST['txtaddress']);
		$country=$_POST['country'];
		$zipcode=$_POST['txtzipcode'];
		$phone=$_POST['txtphone'];
	    $seccode=$_POST['txtseccode'];
		$scode=$_SESSION['seccode'];
		$ipaddress=$_SERVER['REMOTE_ADDR'];
		$verifycode=$_POST['verifycode'];
		$termsandcondition=$_POST['termsandcondition'];
		
		$doj=date('Y-m-d h:i:s');
		$time=date('Y-m-d h:i:s');


		$strname ="select * from ajmatrix_sitesettings_table where sitesettings_id=2";
		$obj9=new Bin_Query();
		$obj9->executeQuery($strname);		
		$strsite=$obj9->records[0]['sitesettings_value'];

		//For getting current cycle id from cycle table which id is have a 1st position.
		$selectid="Select * from ajmatrix_cycle_table where cycle_position=1";
		$obj11=new Bin_Query();
		$obj11->executeQuery($selectid);
		$curr_cid=$obj11->records[0]['cycle_id'];
		
		$obj = new Bin_Query();
		
			
		if(isset($_SESSION['intro_name_id']))
		{
		 $sponsor_id = $_SESSION['intro_name_id'];		
		 $insertmember="INSERT INTO ajmatrix_members_table(members_username,members_password,members_direct_id,members_spillover_id,members_firstname,members_lastname,members_email,members_phone,members_doj,members_ip_address,members_zip,members_address,members_country,members_verification_code,members_verify_time,members_status,members_account_status,members_verified,current_cycle_id ) VALUES('$username','$password','$sponsor_id','0','$firstname','$lastname','$email','$phone','$doj','$ipaddress','$zipcode','$address','$country','$verifycode','$time','0','0','0','$curr_cid')";			
		unset($_SESSION['intro_name_id']);		
		}		
		else
		{	
		$selectsponsor="Select * from ajmatrix_membersettings_table where membersettings_id=18";
		$obj10=new Bin_Query();
		$obj10->executeQuery($selectsponsor);
		$direct=$obj10->records[0]['membersettings_value'];	
		
		$query2 = new Bin_Query();
		$sql2 = "SELECT * FROM ajmatrix_members_table where members_id=".$direct;
		$query2->executeQuery($sql2);			
		if(count($query2->records) > 0)
			$direct=$direct;
		else
			$direct=0;

		
		 $insertmember="INSERT INTO ajmatrix_members_table(members_username,members_password,members_direct_id,members_spillover_id,members_firstname,members_lastname,members_email,members_phone,members_doj,members_ip_address,members_zip,members_address,members_country,members_verification_code,members_verify_time,members_status,members_account_status,members_verified,current_cycle_id ) VALUES('$username','$password','$direct','0','$firstname','$lastname','$email','$phone','$doj','$ipaddress','$zipcode','$address','$country','$verifycode','$time','0','0','0','$curr_cid')";		
		}
		
		
		if($obj->updateQuery($insertmember))
		{		 
			$userid=mysql_insert_id();
			
			$current_date = date('y-m-d H:i:s');
			$insertBankInfo = new Bin_Query();
			$sql = "INSERT INTO ajmatrix_bankinfo_table (member_id, account_name, account_no, bank_address, bank_swift_code, bankwire_route,info_date) VALUES ('".$userid."','','','','','','".$current_date."')";
			$insertBankInfo->updateQuery($sql); 

			$getaccsettings = new Bin_Query();			
			$sql="SELECT * FROM ajmatrix_membersettings_table WHERE membersettings_id=10";
			$getaccsettings->executeQuery($sql);
			$freeaccsettings = $getaccsettings->records[0]['membersettings_value'];
			
			if($freeaccsettings==1)
			{
						
								 
				 		    $sql="SELECT * FROM ajmatrix_members_table WHERE members_id='$userid'";
 				            $obj->executeQuery($sql);
						    $email=$obj->records[0]['members_email'];								
									 
						    $mail="select * from ajmatrix_mailtemplates_table where mailtemplates_id='1'";
							
							$obj->executeQuery($mail);
							$mailfrom=$obj->records[0]['mailtemplates_from'];
							
							$mailsubject=$obj->records[0]['mailtemplates_subjects'];
							$message=$obj->records[0]['mailtemplates_message'];
							
							$message=ereg_replace('<username>',$username,$message);
							$message=ereg_replace('<password>',$pwd,$message);
							$message=ereg_replace('<siteurl>',$strsite,$message);
							$message=ereg_replace('<verificationcode>',$verifycode,$message);
							$message.="Please Follow the Link below to Confirm your Registration<br>";
							$message.='<a href="'.$strsite.'?do=register&action=verify&userid='.$userid.'">Click Here to Confirm your Registration</a>';
							
							//$message="Registration";
			 				$headers  = "MIME-Version: 1.0\n";
							$headers .= "Content-type: text/html; charset=iso-8859-1\n";
							$headers .= "From: ". $mailfrom."\n";		
							$mail=mail($email,$mailsubject,$message,$headers);									
														
							if($mail)
							{							
							//echo '<meta http-equiv="refresh" content="0;url=?do=register&action=registersucess">'; 
							header('Location:index.php?do=register&action=registersucess');							
							}
							else
							{
							//echo '<meta http-equiv="refresh" content="0;url=?do=register&action=registerfailure">'; 
							header('Location:index.php?do=register&action=registerfailure');													
							}
			}
			else
			{	
			//echo '<meta http-equiv="refresh" content="0;url=?do=register&action=checkout&userid='.$userid.'">'; 
			header('Location:index.php?do=register&action=checkout&userid='.$userid);						
			}	
						 			
		}
		
 }
	
	function usercheck()
	{
		
			$username=$_GET['name'];
			function alphanumericcheck($value)
			{
			
					$len=strlen($value);
					if($len>=6 && $len<=20)
					{
						for($i=0;$i<$len;$i++)
						{
							
							
							 $a=ord($value[$i]);
							if(!(($a>=65 and  $a<=90) or ($a>=97 and $a<=122) or ($a>=48 and $a<=57) or($a==32)))
							{
								  
								  return 0;
							}
							
							
						}
						return 1;
					}
					else
					{

						return 0;
					}
					
					
			
			}
			$result=alphanumericcheck($username);
			if($result==1)
			{
			$query = new Bin_Query();
			$sql = "SELECT * FROM ajmatrix_members_table WHERE members_username = '$username' ";
			$query->executeQuery($sql);
			if(count($query->records)== 0)
			{
				echo '<img src="images/tick.gif">';
			}
			else
			{
				echo '<img src="images/x.png">';
			}
			}
			else
			{
				echo '<img src="images/x.png">';
			}
		
		
	}
	
	function mailcheck()
	{
			
		$mail=$_GET['mail'];
		$re_user    = "^[a-z0-9\._-]+"; 
		$re_delim   = "@"; 
		$re_domain  = "[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*"; 
		$re_tld     = "\.([a-z]{2}|aero|arpa|biz|com|coop|edu|gov|info|" . "int|mil|museum|name|net|org|pro)$"; 
			if(eregi($re_user . $re_delim . $re_domain . $re_tld, $mail)==0)
			{
				echo '<img src="images/x.png">';
			}	
			else
			{	
				
			$mail=$_GET['mail'];
			$query = new Bin_Query();
			$sql = "SELECT * FROM ajmatrix_members_table WHERE members_email = '$mail' ";
			$query->executeQuery($sql);
				if(count($query->records)== 0)
				{
					echo '<img src="images/tick.gif">';
				}
				else
				{
					echo '<img src="images/x.png"><font color=red style="font-size:10px">Not Available</font>';
				}
			}
		
	}
	function passstrength()
	{
		  $usrinput = $_GET['password'];
		 		$output = strlen($usrinput); 
		 function checkforup($text, $limit = .1)// check if it has uppercase
			{
			$len = strlen($text);
			$upperCaseCount = 0;
			
			for($i = 0; $i < $len; $i++)
			{
			$chr = $text[$i];
			$intVal = ord($chr);
			
			if($intVal >= 65 && $intVal <= 90)
			{
			if(++$upperCaseCount / $len >= $limit)
			{
			return true;
			}
			}
			}
			return false;
			} 
			
			function checkspchar($usrinput)
			{ // check for special characters
			if(!eregi("^([a-z0-9])*$",$usrinput))
			{return true;}
			else {
			return false;
			}
			}
			
			function checknum($usrinput)
			{ // check for numebers
			if(eregi("[0-9]",$usrinput))
			
			{
			return true;
			
			}
			else {
			return false;
			}
			}
		 	
			//exit();
			
						if(checknum($usrinput)==true&&checkforup($usrinput)==true&&checkspchar($usrinput)==true&&$output>='8') // If all the 4 conditions return true
			{
			echo '<img src="images/usecure.gif" width="100" /><br><font color="#63dc39" style=font-size:10px>Very Strong</font>';
			
			}
			elseif((checkforup($usrinput)==true&&checkspchar($usrinput)==true&&$output>='8')||(checknum($usrinput)==true&&checkspchar($usrinput)==true&&$output>='8')||(checknum($usrinput)==true&&checkforup($usrinput)==true&&$output>='8')||(checknum($usrinput)==true&&checkforup($usrinput)==true&&checkspchar($usrinput)==true))
			// if any of the 3 conditions returned true
			{
			echo '<img src="images/secure.gif" width="100"/><br><font color="#00B300" style=font-size:10px>Strong</font>';
			}
			elseif((checknum($usrinput)==true&&checkforup($usrinput)==true)||(checkforup($usrinput)==true&&checkspchar($usrinput)==true)||(checkspchar($usrinput)==true&&$output>='8')||(checknum($usrinput)==true&&$output>='8')||(checknum($usrinput)==true&&checkspchar($usrinput)==true)||(checkforup($usrinput)==true&&$output>='8'))
			//if any 2 condtion is true
			{
			echo '<img src="images/good.gif" width="100"/><br><font color="green" style=font-size:10px>Medium</font>';
			}
			elseif((checknum($usrinput)==true)||(checkforup($usrinput)==true)||(checkspchar($usrinput)==true)||($output>='8'))
			//if any 1 condition is true
			{
			echo '<img src="images/weak.gif" width="100"/><br><font color="#f01212" style=font-size:10px>Weak</font>';
			}
			else{
			// if none of the condtions return true
			echo '<img src="images/pweak.gif" width="100"/><br><font color=red style=font-size:10px>Very Weak</font>';
			}
			
			
	
	}

	function codecheck()
	{
		$code=$_GET['code'];
		$seccode=$_SESSION['security_code'];
		if(strcmp($seccode,$code)==0)
		{
			echo '<img src="images/tick.gif">';
		}
		else
		{
			echo '<img src="images/x.png">';
		}
	}
	function checkpass()
	{
		
			 $pass=$_GET['pass'];
			 $repass=$_GET['repass'];
			if($pass!=$repass)
			{
				echo '<img src="images/x.png">';;
			}
			else
			{
				echo '<img src="images/tick.gif">';
			}
			
		
		
	}
	
	function firstcheck()
	{
		
			 $first=$_GET['first'];
			
			function alphacheck($value)
			{
					$len=strlen($value);
					
					{
						for($i=0;$i<$len;$i++)
						{
							
							$a=ord($value[$i]);
							if(!(($a>=65 and  $a<=90) or ($a>=97 and $a<=122) or ($a==32)))
							{
								  return 0;
							}
							
						}
						return 1;
					}
					
			
			}
			 $result=alphacheck($first);
			if($result==0)
			{
				echo '<img src="images/x.png">';
			}
			else
			{
				echo '<img src="images/tick.gif">';
			}
			
		
		
	}
	
	function lastcheck()
	{
		
			 $last=$_GET['last'];
			
			function alphacheck($value)
			{
					$len=strlen($value);
					
					{
						for($i=0;$i<$len;$i++)
						{
							
							$a=ord($value[$i]);
							if(!(($a>=65 and  $a<=90) or ($a>=97 and $a<=122) or ($a==32)))
							{
								  return 0;
							}
							
						}
						return 1;
					}
					
			
			} 
			$result=alphacheck($last);
			if($result==0)
			{
				echo '<img src="images/x.png">';;
			}
			else
			{
				echo '<img src="images/tick.gif">';
			}
			
		
		
	}
	
	
	function verify()
	{
		 $id=$_GET['userid'];
		 return $id;
	}
	function verification()
	{
				 
		if(isset($_SESSION['memberid'])&&$_SESSION['memberid']!=0)
		{
			$user_id=$_SESSION['memberid'];
		}
		else
		{
		 $user_id=$_GET['userid'];
		}
		 
		 
		$vericode=$_POST['verify'];
		
		$obj2 = new Bin_Query();
		$sql1="Select * from ajmatrix_members_table where members_id='$user_id' ";
		//echo $sql1;
		$obj2->executeQuery($sql1);
	 	$verifycode=$obj2->records[0]['members_verification_code'];
		$username=$obj2->records[0]['members_username'];
		$logtime=$obj2->records[0]['members_verify_time'];
		$_SESSION['mailid']=$obj2->records[0]['members_email'];
		$_SESSION['userid1']=$user_id;
		$dat1=explode(" ",$logtime);
		
		$start=$dat1[1];
		$dat=date('Y-m-d h:i:s');
		$d1=explode(" ",$dat);
		$end=$d1[1];
		 $date1=$dat1[0];
		 $date2=$d1[0];
		//$d1=$res['invest_date'];
			  //$d2=date("Y-m-d");
			  $dex=explode('-',$date1); 
			  $dex1=explode('-',$date2);
			  $date1=mktime(0,0,0,$dex[1],$dex[2],$dex[0]);
 			  $date2=mktime(0,0,0,$dex1[1],$dex1[2],$dex1[0]);
			  $diff=$date2-$date1;
			  $days=floor($diff/(60*60*24));
			  
		function get_time_difference( $start, $end )
		{
		$uts['start']      =    strtotime( $start );
		$uts['end']        =    strtotime( $end );
		if( $uts['start']!==-1 && $uts['end']!==-1 )
		{
			if( $uts['end'] >= $uts['start'] )
			{
				$diff    =    $uts['end'] - $uts['start'];
				if( $days=intval((floor($diff/86400))) )
					$diff = $diff % 86400;
				if( $hours=intval((floor($diff/3600))) )
					$diff = $diff % 3600;
				if( $minutes=intval((floor($diff/60))) )
					$diff = $diff % 60;
				$diff    =    intval( $diff );            
				return( array('days'=>$days, 'hours'=>$hours, 'minutes'=>$minutes, 'seconds'=>$diff) );
			}
			else
			{
				trigger_error( "Ending date/time is earlier than the start date/time", E_USER_WARNING );
			}
		}
		else
		{
			trigger_error( "Invalid date/time data detected", E_USER_WARNING );
		}
		return( false );}


		if( $diff=@get_time_difference($start, $end) )
		{
		 // echo "Hours: " .
			 //  sprintf( '%02d:%02d:%02d', $diff['hours'], $diff['minutes'],$diff['seconds'] );
				  $min=$diff['minutes'];
				  $hours=$diff['hours'];
		}


			
			   if($verifycode==$vericode)
			   {
				 if($min<=15 && $days==0 && $hours==0)
			 	 {
			  		//$verifycode==$vericode;
					
						$obj= new Bin_Query();
						$sql="SELECT * FROM ajmatrix_membersettings_table WHERE membersettings_id=8";
			 			$obj->executeQuery($sql);
						$memberapprovesettings = $obj->records[0]['membersettings_value'];
						
					if($memberapprovesettings==0)
					{
					$upd="update ajmatrix_members_table set members_verified='1',members_status='1' where members_id='".$user_id."'";  
							
					if($obj2->updateQuery($upd))
					{							
						
						// ******************* Check whether Commission Earning after Regristration ********************//
						$obj_select= new Bin_Query();
						$select="select * from ajmatrix_membersettings_table where membersettings_id='2'";	
						$obj_select->executeQuery($select);
						$status_select=$obj_select->records[0]['membersettings_value'];			
						if($status_select == 0)
						{
								
							//Check Level Completion
			
							$query="select * from ajmatrix_members_table where members_id='".$user_id."'";
							
							$obj=new Bin_Query();		
		
							if($obj->executeQuery($query))
							{
		
					//Checking for Force matrix or Cycling marix
							$sql="SELECT * from ajmatrix_networksettings_table";
							$qry = new Bin_Query();
							$qry->executeQuery($sql);	
							$matrix_type=$qry->records[0]['networksettings_matrix_type'];
								if($matrix_type == 'normal')
								{
									$flag = Model_MSpillover::checkLevelComp($obj->records[0]['members_direct_id']);
								}
								else if($matrix_type == 'cycle')
								{
									$flag = Model_MSpilloverCycle::checkLevelComp($obj->records[0]['members_direct_id']);	
								}

							}						
							if ($flag==0)	
							{						
							$updtLevel = new Bin_Query();			
							$upd_query="update ajmatrix_members_table set members_direct_id='0',members_spillover_id='0' where members_id='".$user_id."'"; 	
							$updtLevel->updateQuery($upd_query);	
							}	
							else
							{	
							$getUserDetails = new Bin_Query();
							$sql = "select * from ajmatrix_members_table where members_id='".$user_id."'";
							$getUserDetails->executeQuery($sql);		

							//Set Spillover

				//Checking for Force matrix or Cycling marix
			$sql="SELECT * from ajmatrix_networksettings_table";
			$qry = new Bin_Query();
			$qry->executeQuery($sql);	
			$matrix_type=$qry->records[0]['networksettings_matrix_type'];

							//if($matrix_type == 'normal')
							//{
							Model_MSpillover::setSpillover($getUserDetails->records[0]['members_id'],$getUserDetails->records[0]['members_direct_id']);
							//}
							if($matrix_type == 'cycle')
							{
	$dirid=$getUserDetails->records[0]['members_direct_id'];
	$obj = new Bin_Query();				
	$sql = "select cycle_upgrade_status from ajmatrix_members_table where members_id='".$dirid."'";
	$obj->executeQuery($sql);
	$cycle_upgrade_status = $obj->records[0]['cycle_upgrade_status'];								
								if($cycle_upgrade_status == 1)
								{
									Model_MSpilloverCycle::setSpillover($getUserDetails->records[0]['members_id'],$getUserDetails->records[0]['members_direct_id']);	
								}
								else if($cycle_upgrade_status == 0)
								{
									Model_MSpilloverCycle::setSurplus($getUserDetails->records[0]['members_id'],$getUserDetails->records[0]['members_direct_id']);
								}
							}
			
						
							//Set Direct Commission
							if($getUserDetails->records[0]['members_direct_id'] != 0 )
							{
								Model_MSpillover::directCommission($getUserDetails->records[0]['members_id'],$getUserDetails->records[0]['members_direct_id']);	
							}
							
							
							$getUserDetails = new Bin_Query();
							$sql = "select * from ajmatrix_members_table where members_id='".$user_id."'";
							$getUserDetails->executeQuery($sql);				
							
							//Set level Commission
							Model_MSpillover::setlevelCommission($getUserDetails->records[0]['members_id'],$getUserDetails->records[0]['members_spillover_id']);	
							
							//Set Binary Pairing Commission
							$obj= new Bin_Query();
							$sql="SELECT * FROM ajmatrix_networksettings_table WHERE networksettings_id=1";
							$obj->executeQuery($sql);
							$binarysettings = $obj->records[0]['networksettings_binary_status'];
							if($binarysettings=='on')
							{
								$binarycommission = $obj->records[0]['networksettings_binary_commission'];						
								Model_MSpillover::binaryCommission($getUserDetails->records[0]['members_spillover_id'],$binarycommission);	
							}							
							//Set X-UP Level Commission
							$getUserDetails = new Bin_Query();
							$sql = "select * from ajmatrix_members_table where members_id='".$user_id."'";
							$getUserDetails->executeQuery($sql);		
							$obj= new Bin_Query();
							$sql="SELECT * FROM ajmatrix_networksettings_table WHERE networksettings_id=1";
							$obj->executeQuery($sql);
							$xupsettings = $obj->records[0]['networksettings_xup_status'];
							if($xupsettings=='on')
							{
								 $xuplevel = $obj->records[0]['networksettings_xup_level'];	Model_MSpillover::setxuplevelCommission($getUserDetails->records[0]['members_id'],$getUserDetails->records[0]['members_spillover_id'],$xuplevel);	
							}	
							
							}		
						}
						
						// ******************** END **************************************************//
										
						$email = $getUserDetails->records[0]['members_email'];
						$obj= new Bin_Query();
						$sql="SELECT * FROM ajmatrix_membersettings_table WHERE membersettings_id=9";
			 			$obj->executeQuery($sql);
						$emailsettings = $obj->records[0]['membersettings_value'];
						if($emailsettings==1)
						{										
								$mail="select * from ajmatrix_mailtemplates_table where mailtemplates_id='10'";
								$obj= new Bin_Query();
								$obj->executeQuery($mail);
								$mailfrom=$obj->records[0]['mailtemplates_from'];
								
								$mailsubject=$obj->records[0]['mailtemplates_subjects'];
								$message=$obj->records[0]['mailtemplates_message'];
								
								$message=ereg_replace('<username>',$username,$message);
								//$message=ereg_replace('<password>',$pwd,$message);
								//$message=ereg_replace('<siteurl>',$strsite,$message);
								//$message=ereg_replace('<verificationcode>',$verifycode,$message);
								//$message.="Please Follow the Link below to Confirm your Registration<br>";
								//$message.='<a href="'.$strsite.'/?do=register&action=verify&userid='.$userid.'">Click Here to Confirm your Registration</a>';
							
								//$message="Registration";
								
								
			 					$headers  = "MIME-Version: 1.0\n";
								$headers .= "Content-type: text/html; charset=iso-8859-1\n";
								$headers .= "From: ". $mailfrom."\n";		
								$mail=mail($email,$mailsubject,$message,$headers);													
								$mail=1;							
								if($mail)
								{
									header('Location:?do=register&action=verifysucess');	
								}
								else
								{	
														
									header('Location:?do=register&action=verifyfailure');
								}
							
							}
							else
							{											
								header('Location:?do=register&action=verifysucess');	
								exit();
							}
						
						}
						
					}
					else
					{
						$_SESSION['approvemsg']="Thanks for Registering with us. You account will be activated after admin approval within 24 to 48 Hours.";					
						header('Location:?do=register&action=verify&userid='.$user_id.'');					
						exit();
					}									
					
			  	  }
				  else
				  {
				  		
				  		header('Location:?do=register&action=verifyfailure');
						exit();
				  }
				}
				else
				{
					$_SESSION['err']="Invalid Verification Code";
					header('Location:?do=register&action=verify&userid='.$user_id.'');
					exit();
				}
			
		
		
	}
	
	function getcode()
	{
		
		srand();
		$verifycode=substr(md5(rand(0,100000)),0,5);
		 $email=$_SESSION['mailid'];
		 $userid=$_SESSION['userid1'];
		//unset($_SESSION['mailid']);
		//unset($_SESSION['userid']);
		$strname ="select * from ajmatrix_sitesettings_table where sitesettings_id=2";
		$obj9=new Bin_Query();
		$obj9->executeQuery($strname);
		$strsite=$obj9->records[0]['sitesettings_value'];
		$dat=date('Y-m-d h:i:s');
		$update="update  ajmatrix_members_table set members_verification_code='$verifycode',members_verify_time='$dat',members_verified='0',members_status='0' where members_id='$userid'";
		//echo $update;
		$obj3=new Bin_Query();
		$obj3->updateQuery($update);
		if($obj3->updateQuery($update))
		{
		
							 $mail="select * from ajmatrix_mailtemplates_table where mailtemplates_id='1'";
			  				 $obj=new Bin_Query();
							 $obj->executeQuery($mail);
							 $mailfrom=$obj->records[0]['mailtemplates_from'];
							
							 $mailsubject=$obj->records[0]['mailtemplates_subjects'];
							 $message=$obj->records[0]['mailtemplates_message'];
							
							$message=ereg_replace('<username>',$username,$message);
						//	$message=ereg_replace('<password>',$pwd,$message);
							$message=ereg_replace('<siteurl>',$strsite,$message);
							$message=ereg_replace('<verificationcode>',$verifycode,$message);
							$message.="Please Follow the Link below to Confirm your Registration<br>";
							$message.='<a href="'.$strsite.'?do=register&action=verify&userid='.$userid.'">Click Here to Confirm your Registration</a>';
							
							//$message="Registration";
			 				
			 				$headers  = "MIME-Version: 1.0\n";
							$headers .= "Content-type: text/html; charset=iso-8859-1\n";
							$headers .= "From: ". $mailfrom."\n";		
							$mail=mail($email,$mailsubject,$message,$headers);
							
							if($mail)
							header('Location:?do=register&action=reverifysucess');
							else
							header('Location:?do=register&action=reverifyfailure');
							exit();
			
	}	
							
}


	function _recaptcha_qsencode ($data) {
        $req = "";
        foreach ( $data as $key => $value )
                $req .= $key . '=' . urlencode( stripslashes($value) ) . '&';

        // Cut the last '&'
        $req=substr($req,0,strlen($req)-1);
        return $req;
	}

	function _recaptcha_http_post($host, $path, $data, $port = 80)
	{

        $req = Model_MRegister::_recaptcha_qsencode ($data);

        $http_request  = "POST $path HTTP/1.0\r\n";
        $http_request .= "Host: $host\r\n";
        $http_request .= "Content-Type: application/x-www-form-urlencoded;\r\n";
        $http_request .= "Content-Length: " . strlen($req) . "\r\n";
        $http_request .= "User-Agent: reCAPTCHA/PHP\r\n";
        $http_request .= "\r\n";
        $http_request .= $req;

        $response = '';
        if( false == ( $fs = @fsockopen($host, $port, $errno, $errstr, 10) ) ) {
                die ('Could not open socket');
        }

        fwrite($fs, $http_request);

        while ( !feof($fs) )
                $response .= fgets($fs, 1160); // One TCP-IP packet
        fclose($fs);
        $response = explode("\r\n\r\n", $response, 2);

        return $response;
	}



	function recaptcha_get_html ($pubkey, $error = null, $use_ssl = false)
	{
		
	if ($pubkey == null || $pubkey == '') {
		die ("To use reCAPTCHA you must get an API key from <a href='http://recaptcha.net/api/getkey'>http://recaptcha.net/api/getkey</a>");
	}
	
	if ($use_ssl) {
                $server = 'https://api-secure.recaptcha.net';
        } else {
                $server = 'http://api.recaptcha.net';
        }

        $errorpart = "";
        if ($error) {
           $errorpart = "&amp;error=" . $error;
        }
	
        return $result = '
	<script type="text/javascript" src="'.$server.'/challenge?k=' . $pubkey . $errorpart . '"></script>
	<noscript>
  		<iframe src="'.$server.'/noscript?k=' . $pubkey . $errorpart . '" height="300" width="500" frameborder="0"></iframe><br/>
  		<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
  		<input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
	</noscript>';
}

	function recaptcha_check_answer ($privkey, $remoteip, $challenge, $response, $extra_params = array())
	{
	
	if ($privkey == null || $privkey == '') {
		die ("To use reCAPTCHA you must get an API key from <a href='http://recaptcha.net/api/getkey'>http://recaptcha.net/api/getkey</a>");
	}

	if ($remoteip == null || $remoteip == '') {
		die ("For security reasons, you must pass the remote ip to reCAPTCHA");
	}

	
	
        //discard spam submissions
        if ($challenge == null || strlen($challenge) == 0 || $response == null || strlen($response) == 0) {
                $recaptcha_response = new ReCaptchaResponse();
                $recaptcha_response->is_valid = false;
                $recaptcha_response->error = 'incorrect-captcha-sol';
                return $recaptcha_response;
        }

        $response =Model_MRegister::_recaptcha_http_post ('api-verify.recaptcha.net', "/verify",
                                          array (
                                                 'privatekey' => $privkey,
                                                 'remoteip' => $remoteip,
                                                 'challenge' => $challenge,
                                                 'response' => $response
                                                 ) + $extra_params
                                          );

        $answers = explode ("\n", $response [1]);
        $recaptcha_response = new ReCaptchaResponse();

        if (trim ($answers [0]) == 'true') {
                $recaptcha_response->is_valid = true;
        }
        else {
                $recaptcha_response->is_valid = false;
                $recaptcha_response->error = $answers [1];
        }
        return $recaptcha_response;

}

function recaptcha_get_signup_url ($domain = null, $appname = null) {
	return "http://recaptcha.net/api/getkey?" .  Model_MRegister::_recaptcha_qsencode (array ('domain' => $domain, 'app' => $appname));
}

function _recaptcha_aes_pad($val) {
	$block_size = 16;
	$numpad = $block_size - (strlen ($val) % $block_size);
	return str_pad($val, strlen ($val) + $numpad, chr($numpad));
}

/* Mailhide related code */

function _recaptcha_aes_encrypt($val,$ky) {
	if (! function_exists ("mcrypt_encrypt")) {
		die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed.");
	}
	$mode=MCRYPT_MODE_CBC;   
	$enc=MCRYPT_RIJNDAEL_128;
	$val=Model_MLogin::_recaptcha_aes_pad($val);
	return mcrypt_encrypt($enc, $ky, $val, $mode, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0");
}


function _recaptcha_mailhide_urlbase64 ($x) {
	return strtr(base64_encode ($x), '+/', '-_');
}

/* gets the reCAPTCHA Mailhide url for a given email, public key and private key */
function recaptcha_mailhide_url($pubkey, $privkey, $email) {
	if ($pubkey == '' || $pubkey == null || $privkey == "" || $privkey == null) {
		die ("To use reCAPTCHA Mailhide, you have to sign up for a public and private key, " .
		     "you can do so at <a href='http://mailhide.recaptcha.net/apikey'>http://mailhide.recaptcha.net/apikey</a>");
	}
	

	$ky = pack('H*', $privkey);
	$cryptmail =Model_MRegister::_recaptcha_aes_encrypt ($email, $ky);
	
	return "http://mailhide.recaptcha.net/d?k=" . $pubkey . "&c=" . Model_MRegister::_recaptcha_mailhide_urlbase64 ($cryptmail);
	}


	function _recaptcha_mailhide_email_parts ($email) {
	$arr = preg_split("/@/", $email );

	if (strlen ($arr[0]) <= 4) {
		$arr[0] = substr ($arr[0], 0, 1);
	} else if (strlen ($arr[0]) <= 6) {
		$arr[0] = substr ($arr[0], 0, 3);
	} else {
		$arr[0] = substr ($arr[0], 0, 4);
	}
	return $arr;
	}

	function recaptcha_mailhide_html($pubkey, $privkey, $email) {
	$emailparts = Model_MRegister::_recaptcha_mailhide_email_parts ($email);
	$url = Model_MRegister::recaptcha_mailhide_url ($pubkey, $privkey, $email);
	
	return htmlentities($emailparts[0]) . "<a href='" . htmlentities ($url) .
		"' onclick=\"window.open('" . htmlentities ($url) . "', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;\" title=\"Reveal this e-mail address\">...</a>@" . htmlentities ($emailparts [1]);

	}

function getGeneralSettings()
{
		$obj= new Bin_Query();
		$sql="select * from ajmatrix_generalsettings_table";
		$obj->executeQuery($sql);
		return $obj->records;

}

	
}

class ReCaptchaResponse {
        var $is_valid;
        var $error;
}
?>

Here is the template

Code:
<script type="text/javascript" src="js/ajax.js"></script>
<script type="text/javascript" src="js/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="js/jquery.pstrength-min.1.2.js"></script>
<script type="text/javascript" src="js/tooltip.js"></script>
<script type="text/javascript" language="javascript">
var presh = -1
/*
function shuffle()
{
		curr = Math.ceil(Math.random()*100);
		document.getElementById('captcha').src="?do=captcha&"+ (curr==presh ? Math.ceil(Math.random()*100) : curr);				
		presh = curr;
//document.getElementById('captcha').src = "?do=captcha";
}
*/

function shuffle()
{
		curr = Math.ceil(Math.random()*100);
		document.getElementById('captcha').src="Captcha.php?"+ (curr==presh ? Math.ceil(Math.random()*100) : curr);				
		presh = curr;
//document.getElementById('captcha').src = "Captcha.php";
}
</script>
<script type="text/javascript">

function usercheck(username)
{
	
	if(username!='')
		{	//alert(state)
				var url ="?do=usercheck&name="+ username;
				ajax(url,'name');
		}
}
function mailcheck(mail)
{
	
	if(mail!='')
		{	//alert(state)
				var url ="?do=mailcheck&mail="+ mail;
				ajax(url,'mail');
		}
}
function codecheck(code)
{
	
	if(code!='')
		{	//alert(state)
				var url ="?do=codecheck&code="+ code;
				ajax(url,'code');
		}
}

function checkpass()
{
	pass=document.getElementById('password').value;
	repass=document.getElementById('txtrepassword').value;
	var url ="?do=checkpass&pass="+ pass +"&repass="+ repass;
	//alert(url);
	ajax(url,'check');
}
function firstcheck(first)
{
	(first!='')
		{	//alert(state)
				var url ="?do=firstcheck&first="+ first;
				ajax(url,'first');
		}
}
function lastcheck(last)
{
	(last!='')
		{	//alert(state)
				var url ="?do=lastcheck&last="+ last;
				ajax(url,'last');
		}
}
function countrycheck(country)
{
	
		{	//alert(state)
				var url ="?do=countrycheck&last="+ country;
				ajax(url,'country');
		}
}
function passstrength(password)
{
	//alert(password);
		{	//alert(state)
				var url ="?do=passstrength&password="+ password;
				ajax(url,'bar');
		}
}

</script>

<AJDF:output>$header</AJDF:output>

<div style="margin-top:18px;">

<!--Left Side -->
<!--Left Ends -->

<!--Right Side -->

<div id="login-right">
<div style="width:100%; float:right;">
  <div class="c-top">
    <div class="c1"><img src="images/cur-TL.gif" alt="" width="6" height="6" /></div>
    <div class="c3"><img src="images/cur-TR.gif" alt="" width="6" height="6" /></div>
  </div>
  <div class="t-middle" style="clear:both">
    <div class="middle-content">
	
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td class="line-bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td valign="top">
                <img src="images/register.gif" width="100" height="20" alt="Registration" /></td>
              </tr>
          </table></td>
        </tr>
        <tr>
          <td valign="top" style="padding:10px 2px 10px 2px;"><form action="?do=register&action=insertmember" method="post" name="registration" id="registration">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td class="acc-inform">Account Information</td>
                <td>&nbsp;</td>
                <td align="right" class="formtxt"><font color="red">*</font>Fields are Mandatory</td>
              </tr>
              <AJDF:output>if $sponsorstatus!="" </AJDF:output>
               <tr>
                <td width="39%" class="formtxt">Sponsor Name <font color="red">*</font></td>
                <td width="2%">:</td>
                <td width="59%" ><span class="smalltxt" style="font-size:13px" ><AJDF:output>$sponsorstatus</AJDF:output></span></td>
              </tr>
	        <AJDF:output>elseif $message.levelcompmsg !="" </AJDF:output>	
		 <tr>
                <td width="39%" class="formtxt">Sponsor Name <font color="red">*</font></td>
                <td width="2%">:</td>
                <td width="59%" ><div class="smalltxt" style="font-size:13px;color:#FF0000;text-decoration:blink;"> <AJDF:output>$message.levelcompmsg</AJDF:output></div></td>
              </tr>	
              <AJDF:output>/if</AJDF:output>
              <tr>
                <td width="39%" class="formtxt">User Name <font color="red">*</font></td>
                <td width="2%">:</td>
                <td width="59%" ><input type="text" name="txtusername" id="txtusername" onchange="usercheck(this.value)" class="txtBox " value="<AJDF:output>$values.txtusername</AJDF:output>"  /> <!--<img src="images/help3.gif" width="10px" height="10px" onMouseOver="tooltip.show('<strong>Enter your User Name Here</strong>');" onClick="tooltip.hide();" onMouseOut="tooltip.hide();" />--><span id="name"></span><br />
                <font color=red  style="font-size:10px"><AJDF:output>$message.txtusername</AJDF:output></font></td>
              </tr>
              <tr>
                <td style="font-size:12px" valign="top" align="right" >Password <font color="red">*</font>&nbsp;&nbsp;</td>
                <td valign="top">:</td>
                <td width="59%"><input type="password" name="txtpassword" id="password" onkeyup="passstrength(this.value)"  class="txtBox "> <!--<img src="images/help3.gif" onMouseOver="tooltip.show('<strong>Enter your Password Here</strong>');" onClick="tooltip.hide();" onMouseOut="tooltip.hide();" />--><br />
                <font color=red style="font-size:10px"><AJDF:output>$message.txtpassword</AJDF:output></font><br /><span id="bar"></span>
                </td>
              </tr>
              <!--<tr>
                <td class="formtxt">&nbsp;</td>
                <td>&nbsp;</td>
                <td class="smalltxt"><div class="security"></div>
                  Password Not Entered</td>
              </tr>-->
              <tr>
                <td class="formtxt" valign="top" >Retype Password <font color="red">*</font></td>
                <td >:</td>
                <td><input type="password" name="txtrepassword" id="txtrepassword" class="txtBox" onchange="checkpass()" />&nbsp;<!--<img src="images/help3.gif" onMouseOver="tooltip.show('<strong>Enter Retype your Password Here</strong>');" onClick="tooltip.hide();" onMouseOut="tooltip.hide();" />--> <span id="check"></span> <br />
                <font color="red" style="font-size:10px"> <AJDF:output>$message.txtrepassword</AJDF:output></font></td>
              </tr>
              <tr>
                <td class="formtxt" valign="top"> Email <font color="red">*</font></td>
                <td >:</td>
                <td ><input type="text" name="txtemail"  onchange="mailcheck(this.value)" id="txtemail" class="txtBox" value="<AJDF:output>$values.txtemail</AJDF:output>"/>&nbsp;<!--<img src="images/help3.gif" onMouseOver="tooltip.show('<strong>Enter your Email-Id Here <br>Ex: [email protected]</strong>');" onClick="tooltip.hide();" onMouseOut="tooltip.hide();" />--> <span id="mail"></span><br />
                <font color="red" style="font-size:10px"> <AJDF:output>$message.txtemail</AJDF:output></font></td>
              </tr>
              <tr>
                <td colspan="3" class="line-dot">&nbsp;</td>
              </tr>
              <tr>
                <td class="acc-inform">Contact Information</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              
              
              <tr>
                <td class="formtxt" valign="top">First Name <font color="red" >*</font></td>
                <td>:</td>
                <td ><input type="text" name="txtfirstname" id="txtfirstname" onchange="firstcheck(this.value)" class="txtBox" value="<AJDF:output>$values.txtfirstname</AJDF:output>" />&nbsp;<!--<img src="images/help3.gif" onMouseOver="tooltip.show('<strong>Enter your First Name Here </strong>');" onClick="tooltip.hide();" onMouseOut="tooltip.hide();" />--> <span id="first"></span>
                  <br />
                <font color="red" style="font-size:10px"> <AJDF:output>$message.txtfirstname</AJDF:output></font></td>
              </tr>
              <tr>
                <td class="formtxt" valign="top">Last Name <font color="red">*</font></td>
                <td >:</td>
                <td ><input type="text" name="txtlastname" id="txtlastname" onchange="lastcheck(this.value)" class="txtBox" value="<AJDF:output>$values.txtlastname</AJDF:output>" />&nbsp;<!--<img src="images/help3.gif" onMouseOver="tooltip.show('<strong>Enter your Last Name Here</strong>');" onClick="tooltip.hide();" onMouseOut="tooltip.hide();" />--> <span id="last"></span>
                  <br />
                <font color="red" style="font-size:10px" ><AJDF:output>$message.txtlastname</AJDF:output></font></td>
              </tr>
              <tr>
                <td align="right"  valign="top" style="font-size:12px">Address&nbsp;&nbsp;&nbsp;&nbsp;</td>
                <td  valign="top" >:</td> 	
                <td><textarea name="txtaddress" id="txtaddress" cols="45" rows="5" class="txtBox"><AJDF:output>$values.txtaddress</AJDF:output></textarea> <!--<img src="images/help3.gif" align="top" onMouseOver="tooltip.show('<strong>Enter your Contact Address Here</strong>');" onClick="tooltip.hide();" onMouseOut="tooltip.hide();" />-->
                  <br />
                <font color="red" style="font-size:10px" ><AJDF:output>$message.txtaddress</AJDF:output></font></td>
              </tr>
              <tr>
                <td class="formtxt" valign="top">Country <font color="red">*</font> </td>
                <td >:</td>
                <td><label>
                  <!--<select name="country" id="select" class="txtBox">
                    <option>India</option>
                  </select>--><AJDF:output>$country</AJDF:output>&nbsp;&nbsp;<!--<img src="images/help3.gif" onMouseOver="tooltip.show('<strong>select Your Country Here</strong>');" onClick="tooltip.hide();" onMouseOut="tooltip.hide();" />--> <span id="country"></span>
                </label>
                  <br />
                  <font color="red" style="font-size:10px"> <AJDF:output>$message.country</AJDF:output></font></td>
              </tr>
              <tr>
                <td class="formtxt" valign="top">Zip Code</td>
                <td>:</td>
                <td><input type="text" class="txtBox" name="txtzipcode" id="txtzipcode" value="<AJDF:output>$values.txtzipcode</AJDF:output>" /> <!--<img src="images/help3.gif" onMouseOver="tooltip.show('<strong>Enter your Country ZipCode Here</strong>');" onClick="tooltip.hide();" onMouseOut="tooltip.hide();" />-->
                 <br /> 
                <font color="red" style="font-size:10px"> <AJDF:output>$message.txtzipcode</AJDF:output></font></td>
              </tr>
              <tr>
                <td class="formtxt" valign="top">Phone</td>
                <td>:</td>
                <td><input type="text" class="txtBox" name="txtphone" id="txtphone" value="<AJDF:output>$values.txtphone</AJDF:output>" /> <!--<img src="images/help3.gif" onMouseOver="tooltip.show('<strong>Enter your Contact Number Here</strong>');" onClick="tooltip.hide();" onMouseOut="tooltip.hide();" />-->
                  <br /> 
                <font color="red" style="font-size:10px"> <AJDF:output>$message.txtphone</AJDF:output></font></td>
              </tr>
              <tr>
                <td colspan="3" class="line-dot">&nbsp;</td>
              </tr>
              <tr>
                <td class="acc-inform">Verification Information</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
<AJDF:output>if $generalsettings.6.generalsettings_value eq 1</AJDF:output>
              <tr>
                <td class="formtxt" valign="top">Turing Code <font color="red">*</font></td>
                <td>:</td>
                <td><input type="text" name="txtseccode" class="txtBox" id="txtseccode" onchange="codecheck(this.value)" />&nbsp;<!--<img src="images/help3.gif" onMouseOver="tooltip.show('<strong>Please Type The Below Code<br>Note:Letters Are Case-Sensitive</strong>');" onClick="tooltip.hide();" onMouseOut="tooltip.hide();" />--> <span id="code"></span>
                  <br />
                <font color="red" style="font-size:10px"> <AJDF:output>$message.txtseccode</AJDF:output></font></td>
              </tr>
              <tr>
                <td class="formtxt">&nbsp;</td>
                <td>&nbsp;</td>
                <td class="smalltxt"><img width="139" height="50" name="captcha" id="captcha" src="Captcha.php"/>
<a class="boldunderline" onclick="javascript:shuffle();" href="#register" linkindex="9" set="yes">Try another one</a>
</td>
              </tr>
	<AJDF:output>/if</AJDF:output>
<AJDF:output>if $generalsettings.6.generalsettings_value eq 0</AJDF:output>
			<tr>
			<td valign="top" class="formtxt">
                        Audio Captcha Code <font color="red">*</font>
                      </td>
		      <td valign="top">:</td>
                      <td valign="top"> 
                         <AJDF:output>$audio_captcha</AJDF:output>
			 <font color="red" style="font-size:10px"><AJDF:output>$message.captcha</AJDF:output></font><br />

                      </td>
                    </tr><AJDF:output>/if</AJDF:output>
              <tr>
                <td class="formtxt">&nbsp;</td>
                <td>&nbsp;</td>
                <td class="smalltxt"><input type="checkbox" name="termsandcondition" id="checkbox"  value="1"	 />
                  I Agree to the <a href="?do=cms&action=termsandconditions">Terms of Use &amp; Privacy Policy <font color="red">*</font></a> <br /><font color="red" style="font-size:10px"><AJDF:output>$message.termsandcondition</AJDF:output></font></td>
              </tr>
              <tr>
                <td >&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td class="formtxt">&nbsp;</td>
                <td>&nbsp;</td>
                <td><input type="image" src="images/submit.gif" height="27" width="122" value="submit" /></td>
              </tr>
            </table>
          </form></td>
        </tr>
        </table>
		
    </div>
  </div>
  <div class="c-bottom">
    <div class="cb1"><img src="images/cur-BL.gif" alt="" width="6" height="6" /></div>
    <div class="cb3"><img src="images/cur-BR.gif" alt="" width="6" height="6" /></div>
  </div>
</div>
<!--Testimonials-->
<!--Ends-->
</div> 
<!--right ENDS --> 
</div>

<AJDF:output>$footer</AJDF:output>

Please anyone help me to solve this problem.
 
I'm not sure what platform this is, so I really can't help you. I can however say that you can (possibly) rewrite the code to where it's not looking for the $_GET variable in the link, but rather a $_POST variable from a field.
 
Back
Top Bottom