![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
05/01/2013, 05:14
|
![Avatar de patilanz](http://static.forosdelweb.com/customavatars/avatar449752_1.gif) | | | Fecha de Ingreso: enero-2012
Mensajes: 880
Antigüedad: 13 años, 1 mes Puntos: 29 | |
Respuesta: Evitar que se guarden caracteres html en un formulario Al recibir el campo por ejemeplo: $_POST['campo']; simplemente haces esto:
htmlentities($_POST['campo']); y las etiquetas se convierten en entidades HTML.
http://es1.php.net/manual/es/function.htmlentities.php
Saludos |