El problema es que no importa nada.
formulario.php
Código PHP:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Editor de texto</title>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<style type="text/css">
<!--
.Estilo1 {font-family: Verdana, Arial, Helvetica, sans-serif}
.Estilo7 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; }
body {
background-color: #F5F5F5;
}
-->
</style>
</head>
<body>
<?php
//include("codigo-plus.php");
if(imp) {
$op=$_REQUEST['op'];
switch ($op) {
case "actualidad":
$actua = file_get_contents("actualidad.txt");
$actua = ucfirst($actua);
$actua = nl2br($actua);
echo "listo!";
break;
case "noticias":
$noti = file_get_contents("noticias.txt");
$noti = ucfirst($noti);
$noti = nl2br($noti);
echo "listo!";
break;
case "deportes":
$depo = file_get_contents("deportes.txt");
$depo = ucfirst($depo);
$depo = nl2br($depo);
echo "listo!";
break;
}
}
?>
<form action="codigo-plus.php" method="REQUEST">
<label> </label>
<table border="0" cellspacing="3" cellpadding="0">
<tr bordercolor="2">
<td><span class="Estilo1">EDITOR DE TEXTO</span></td>
<td rowspan="9" class="Estilo3"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><label>
<input type="radio" name="op" id="actualidad" value="actualidad">
<span class="Estilo7">Actualidad</span></label></td>
</tr>
<tr>
<td><label>
<input type="radio" name="op" id="noticias" value="noticias">
<span class="Estilo7">Noticias</span></label></td>
</tr>
<tr>
<td><label>
<input type="radio" name="op" id="deportes" value="deportes">
<span class="Estilo7">Deportes</span>
</label></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="33%"> </td>
<td width="67%"><label>
<input onClick="#" type="submit" value="Importar texto" name="imp"
style="BORDER: rgb(128,128,128) 1px dashed; FONT-SIZE: 8pt; FONT-FAMILY: Verdana;
BACKGROUND-COLOR: rgb(213,213,213)">
</label></td>
</tr>
</table>
<label></label></td>
</tr>
<tr>
<td><textarea name="contenido" id="contenido" cols="100" rows="25" style="font-family:Arial, Helvetica, sans-serif; font-size:10px" value="<?echo $actua;?>"></textarea></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input onClick="#" type="submit" value="Enviar" name="enviar"
style="BORDER: rgb(128,128,128) 1px dashed; FONT-SIZE: 8pt; FONT-FAMILY: Verdana;
BACKGROUND-COLOR: rgb(213,213,213)"></td>
<td><label></label>
<table width="333" border="0" cellspacing="6" cellpadding="0">
<tr>
<td width="51"> </td>
<td width="52"><input onClick="#" type="reset" value="Borrar" name="boton"
style="BORDER: rgb(128,128,128) 1px dashed; FONT-SIZE: 8pt; FONT-FAMILY: Verdana;
BACKGROUND-COLOR: rgb(203,203,203)"></td>
<td width="10"><label>
<input type="text" name="estado_de_noticia" id="estado de noticia" >
</label></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<label><br>
<br>
</label>
<p><label></label>
</p>
</form>
</body>
</html>
GRACIAS