isLoggedIn())
{
	header ("location: ../login.php");
	exit ();
}
//variables needed globably in this file.
$tablename="$cfg_tableprefix".'sales';
$field_names=null;
$field_data=null;
$id=-1;
	if(isset($_POST['paid_with']) and isset($_POST['id']))
	{
	
		$id = $_POST['id'];
		
		//gets variables entered by user.
		$paid_with = $_POST['paid_with'];
		$comment=$_POST['comment'];
		
		
		//insure all fields are filled in.
		if($paid_with=='')
		{
			echo "$lang->forgottenFields";
			exit();
		}
		
	}
	else
	{
		//outputs error message because user did not use form to fill out data.
		echo "$lang->mustUseForm";
		exit();
	}
	
	$field_names=array('paid_with','comment');
	$field_data=array("$paid_with","$comment");
	$dbf->update($field_names,$field_data,$tablename,$id,true);
	$dbf->closeDBlink();
?>
manageSales ?>-->
startSale ?>-->