<?php echo "hi dheeraj"; die;

                $database = &JFactory::getDBO();
	        $name =JRequest::getVar('name');
		$add =JRequest::getVar('address');
		$city =JRequest::getVar('city');
		$pcode =JRequest::getVar('pcode');
		$phone =JRequest::getVar('phone');
		$email =JRequest::getVar('email');
		echo $name;
		$query	= "SELECT firstname FROM jos_chronoforms_Memberform  WHERE text_0 = '$name'";
		$database->setQuery($query);
		$check = $database->loadresult();
		
		if ($check)	{
			echo "<font color ='red'><strong>User already a Member</storng></font>";jexit();
		}
?>