Ver Mensaje Individual
  #52 (permalink)  
Antiguo 09/03/2006, 17:14
Avatar de Mauri1
Mauri1
 
Fecha de Ingreso: noviembre-2002
Ubicación: Santiago de Chile
Mensajes: 558
Antigüedad: 21 años, 5 meses
Puntos: 0
Aquí el código

Código PHP:
//Agregar
if ((isset($_POST["insert"])) && ($_POST["insert"] == "nuevo")) {
$el_nombre strip_tags($_POST['campo_nombre_add']);
$el_mensaje $_POST['FCKeditor1'];
$la_fecha date('d-m-Y');
$la_hora date('H:i:s');
$insertSQL "INSERT INTO tabla (nombre, mensaje, fecha, hora) VALUES ('$el_nombre', '$el_mensaje', '$la_fecha', '$la_hora')";
mysql_query($insertSQL$conexion) or die(mysql_error());
header("Location: ".$_SERVER['PHP_SELF']);
}
 
//Área de texto
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath 'FCKeditor/';
$oFCKeditor->ToolbarSet 'Personalizada' ;
$oFCKeditor->Height 300 ;
$oFCKeditor->Value '';
$oFCKeditor->Create() ;