Código PHP:
Y el problema es que en la base de datos me aparecen los campos en blanco, ¿que está mal? gracias. Ver original
<?php $http="blog"; include("../includes/conexion.php"); include("../includes/contador.php"); getBrowser(); if($ip!="X.x.x.x"){ echo '<meta http-equiv="Refresh" content="0;url=http://x.x.com">'; } else{ { $_POST['title']=$title; $_POST['date']=$date; $_POST['content']=$content; $_POST['mes']=$mes; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es"> <head> <meta name="robots" content="NOINDEX ,NOFOLLOW ,NOARCHIVE" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Añadir entradas al blog de manager de primera</title> </head><body><div style="text-align: center;"> <form name="enviar" action="add" method="post" /> <input type='text' name='title' value="Título" onfocus="if (this.value == 'Título') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Título';}" /><br /><br /> <input type="text" name="mes" value="Mes" onfocus="if (this.value == 'Mes') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Mes';}" /><br /><br /> <input type="text" name="date" value="Fecha" onfocus="if (this.value == 'Fecha') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Fecha';}" /><br /><br /> <textarea name="content"></textarea><br /><br /> <input type="submit" name="enviar" style="width:100px;" tabindex="6" value="add" /> </form> </div> </body> </html> <?php }?>