Mi caso es el siguiente:
Estoy tratando de hacer una pequeña aplicación con "PHP", en local funciona todo como yo quiero, el problema está a la hora de subirlo a mi hosting.... Lo que ocurre, o almenos eso creo, es que las variables del formulario se las zampa y no las muestra. Por otro lado, cuando trato de meter una URL me tira error404...
El programita es para unos amigos que tienen un blog, y la idea es darles un formulario en el que va la URL de la imagen del post, varios datos de texto, y el artículo en cuestión. Una vez completan el form, me interesa que lo que obtengan sea un código HTML que puedan copiar y pegar, ya que el objetivo es que todos los post sean iguales.
Os pego el código, y todas las cagada que veáis acribillarme.. >_<
Código HTML :
<head> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div id="cuerpo"> <p><H1>Formulario de reseñas</H1></p><br> <form method="POST" action="resultado.php"> URL-IMAGEN: <input type="text" name="A" size="45"><br> dato1: <input type="text" name="B" size="25"> / dato2: <input type="text" name="C" size="25"><br> dato3: <input type="text" name="D" size="25"><br> dato4: <input type="text" name="E" size="4"><br> articulo: <textarea name="F" rows="20" cols="90"></textarea><br> <input type="submit" value="Generar Código"> </form> </div> </body>
Código PHP :
<head>
<?PHP
$F = nl2br($F);
?>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="cuerpo">
<div>
<p><img src="<?print("$A")?>" style="float: left; margin-left: 10px; margin-right: 10px; border: 0px none;width:134px; height:205px;" /></p>
<p><strong><em><?print("$B")?></em> / <?Print("$C")?></strong></p>
<p><strong>dato3 </strong><?Print("$D")?><br /><strong>dato4 </strong><?Print("$E")?></p>
<p style="text-align: justify;"><?Print("$F")?></p>
</div>
<hr>
<p><h1>RESULTADO EN HTML</h1></p>
<br />
<b> Copy paste directo </b>
<div>
<form method="POST" action="solohtml.php">
<textarea name="copi" rows="20" cols="90"><p><img src="<?print("$A")?>" style="float: left; margin-left: 10px; margin-right: 10px; border: 0px none;width:134px; height:205px;" /></p>
<p><strong><em><?print("$B")?> </em>/ <?Print("$C")?></strong></p>
<p><strong>dato3 </strong><?Print("$D")?><br /><strong>dato4 </strong><?Print("$E")?></p>
<p style="text-align: justify;"><?echo("$F")?>{jcomments on}</p>
</textarea><br>
<input type="submit" value="VER SOLO HTML"></form>
</div>
<br>
<hr>
<br>
<div>
<p><H1>Modificar</H1></p>
<form method="POST" action="resultado.php">
URL-IMAGEN:<input type="text" name="A" value="<?print("$A")?>" size="45"><br>
dato1:<input type="text" name="B" value="<?print("$B")?>" size="25"> /
dato2:<input type="text" name="C" value="<?print("$C")?>" size="25"><br>
dato3:<input type="text" name="D" value="<?print("$D")?>" size="25"><br>
dato4:<input type="text" name="E" value="<?print("$E")?>" size="4"><br>
articulo:<textarea name="F" rows="20" cols="90"><?echo("$F")?></textarea><br>
<input type="submit" value="Modificar">
</form></div></div>
</body>Repito, en local va bien, pero al subirlo da problemas... >_< alguna idea?
