finalmente encontre una soluciona mi problema, indagando por ahy, espero que te pueda ayudar:
Código PHP:
<?php
//Cargamos las variables del formulario
$nombre1=($_POST['representante']);
$nombre2=($_POST['cliente']);
$dni1=($_POST['dnirepresentante']);
$dni2=($_POST['dnicliente']);
$cntd=($_POST['cantidad']);
$montoletras=($_POST['montol']);
$montonumeros=($_POST['monton']);
//fecha
$fecha1=($_POST['dia']);
$fecha2=($_POST['r2']);
$fecha3=($_POST['r3']);
//Los checks
$chekm=($_POST['chekm']);
$chekp=($_POST['chekp']);
$chekd=($_POST['chekd']);
$chekme=($_POST['chekme']);
$chekf=($_POST['chekf']);
$chekc=($_POST['chekc']);
$cheku=($_POST['cheku']);
$chekpa=($_POST['chekpa']);
$chekt=($_POST['chekt']);
$chekmo=($_POST['chekmo']);
$chekmon=($_POST['chekmon']);
//datos de los Checks
$mainboard=($_POST['mainboard']);
$procesador=($_POST['procesador']);
$disco=($_POST['disco']);
$memoria=($_POST['memoria']);
$floppy=($_POST['floppy']);
$optica=($_POST['optica']);
$case=($_POST['case']);
$parlantes=($_POST['parlantes']);
$teclado=($_POST['teclado']);
$mouse=($_POST['mouse']);
$monitor=($_POST['monitor']);
$fechatotal = "Lima " .$fecha1. " de " .$fecha2. " del " .$fecha3;
$ninguno="ninguna Seleccionada";
header('Content-type: application/msword');
header('content-Disposition: inline, filename=documento.rtf');
$filename = "plantilla.rtf";
$output = file_get_contents($filename);
//Primera Seccion de Formulario
$output = str_replace('nombre1', $nombre1, $output);
$output = str_replace('nombre2', $nombre2, $output);
$output = str_replace('numerodni1', $dni1, $output);
$output = str_replace('numerodni2', $dni2, $output);
$output = str_replace('cntd', $cntd, $output);
$output = str_replace('fechaform', $fechatotal, $output);
//Segunda Seccion de Formulario
if ($chekm=="ON")
{
$output = str_replace('main', $mainboard, $output);
}
Else
{
$output = str_replace('main', $ninguno, $output);
};
if ($chekp=="ON")
{
$output = str_replace('prce', $procesador, $output);
}
Else
{
$output = str_replace('prce', $ninguno, $output);
};
if ($chekd=="ON")
{
$output = str_replace('disd', $disco, $output);
}
Else
{
$output = str_replace('disd', $ninguno, $output);
};
if ($chekme=="ON")
{
$output = str_replace('mri', $memoria, $output);
}
Else
{
$output = str_replace('mri', $ninguno, $output);
};
if ($chekf=="ON")
{
$output = str_replace('fpy', $floppy, $output);
}
Else
{
$output = str_replace('fpy', $ninguno, $output);
};
if ($cheku=="ON")
{
$output = str_replace('letc', $optica, $output);
}
Else
{
$output = str_replace('letc', $ninguno, $output);
};
if ($chekc=="ON")
{
$output = str_replace('cse', $case, $output);
}
Else
{
$output = str_replace('cse', $ninguno, $output);
};
if ($chekpa=="ON")
{
$output = str_replace('prlt', $parlantes, $output);
}
Else
{
$output = str_replace('prlt', $ninguno, $output);
};
if ($chekt=="ON")
{
$output = str_replace('tld', $teclado, $output);
}
Else
{
$output = str_replace('tld', $ninguno, $output);
};
if ($chekmo=="ON")
{
$output = str_replace('mse', $mouse, $output);
}
Else
{
$output = str_replace('mse', $ninguno, $output);
};
if ($chekmon=="ON")
{
$output = str_replace('mnt', $monitor, $output);
}
Else
{
$output = str_replace('mnt', $ninguno, $output);
};
//tercera Seccion de Formulario
$ad1=($_POST['ad1']);
$ad2=($_POST['ad2']);
$ad3=($_POST['ad3']);
$ad4=($_POST['ad4']);
$ad5=($_POST['ad5']);
$ad6=($_POST['ad6']);
$adic1=($_POST['adic1']);
$adic2=($_POST['adic2']);
$adic3=($_POST['adic3']);
$adic4=($_POST['adic4']);
$adic5=($_POST['adic5']);
$adic6=($_POST['adic6']);
$rrr=".";
if ($ad1=="ON")
{
$output = str_replace('pzare', $adic1, $output);
}
Else
{
$output = str_replace('pzare', $rrr, $output);
};
if ($ad2=="ON")
{
$output = str_replace('pzara', $adic2, $output);
}
Else
{
$output = str_replace('pzara', $rrr, $output);
};
if ($ad3=="ON")
{
$output = str_replace('pzaca', $adic3, $output);
}
Else
{
$output = str_replace('pzaca', $rrr, $output);
};
if ($ad4=="ON")
{
$output = str_replace('piezafor', $adic4, $output);
}
Else
{
$output = str_replace('piezafor', $rrr, $output);
};
if ($ad5=="ON")
{
$output = str_replace('pzata', $adic5, $output);
}
Else
{
$output = str_replace('pzata', $rrr, $output);
};
if ($ad6=="ON")
{
$output = str_replace('pzafa', $adic6, $output);
}
Else
{
$output = str_replace('pzafa', $rrr, $output);
};
//cuarta Seccion de Formulario
$output = str_replace('montoletras', $montoletras, $output);
$output = str_replace('montonumeros', $montonumeros, $output);
echo $output;
?>
con los str_replase puedes remplazar las palabras de tu plantilla con las de tu form