Código PHP:
<?
if(isset($_POST['dato'])){
$datos = '&Title=Cartelera de Noticias: &
&myText='. $_POST["Texto"] .'&';
$archy= $_POST["dato"];
$file = fopen($archy,"w-");
fwrite($file,utf8_decode($datos));fclose($file);
header("Location: oksend.htm");
}
else
{
echo "output=no se han recibido los datos";
}
?>