//$body=str_replace('

','',$_POST['area3']);
//$body= str_replace(' ',' ',$_POST['area3']);
$image = '

';
$body= $_POST['area3'];
$content = $image.'
'.$body.'
';
$terms = $_POST['terms'];
file_put_contents('quotes/quote_'.$quote_id.'.html', $content);
if($terms)
{
//$terms_file = file_get_contents('quotes/terms.html');
if(file_exists('quotes/terms.html'))
{
$terms_file = file_get_contents('quotes/terms.html');
}
else
{
$terms_file = terms();
}
file_put_contents('quotes/quote_'.$quote_id.'.html', $terms_file, FILE_APPEND | LOCK_EX);
}
//require_once '../helpers/HTML_ToPDF.php';
ob_end_clean();
//$status = false;
//if($result && strlen($error) == 0)
$status = true;
//else
//$status = false;
$results = array("status" => $status );
$json = json_encode($results);
echo $json;