Ver Mensaje Individual
  #7 (permalink)  
Antiguo 24/05/2010, 14:56
EdVaMaTe
 
Fecha de Ingreso: enero-2010
Mensajes: 20
Antigüedad: 14 años, 3 meses
Puntos: 0
Respuesta: Mostrar texto normal sin caracteres HTML con php

Este es el código paa guardar el textarea.
Gracias.

------------------------------------------------------------------------------------------------
<?php
require_once('Connections/conexion22.php');

$editFormAction = $_SERVER['PHP_SELF'];

if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "Form1"))
{ ///////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
$insertSQL = sprintf("INSERT INTO usuarios (codigo, categoria, subcategoria, zona, titulo, precio, texto_usuarios) VALUES (%s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($txt_codigo, "text"),
GetSQLValueString($_POST['txt_categoria'], "text"),
GetSQLValueString(md5($_POST['txt_subcategoria']), "text"), GetSQLValueString($_POST['txt_zona'], "text"),
GetSQLValueString($_POST['txt_titulo'], "text"),
GetSQLValueString($_POST['txt_precio'], "text"),
GetSQLValueString($_POST['txt_descripcion'], "text"),

mysql_select_db($database_conexion22, $conexion22);
$Result1 = mysql_query($insertSQL, $conexion22) or die(mysql_error());

?>