Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/01/2018, 21:09
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 8 años, 10 meses
Puntos: 263
Respuesta: error al pasa carácter tilde en un formulario

Utiliza htmlsntities

Código PHP:
Ver original
  1. $nombre=htmlentities($_POST[nombre],, ENT_QUOTES);
  2. $apellido=htmlentities($_POST[apellido],, ENT_QUOTES);
  3. $ciudad=htmlentities($_POST[ciudad],, ENT_QUOTES);
  4. $comunidad=htmlentities($_POST[comunidad],, ENT_QUOTES);
  5. $tituloanuncio=htmlentities($_POST[tituloanuncio],, ENT_QUOTES);

de esa manera vuelves a formato html los caracteres especiales como las tildes por ejemplo
__________________
[email protected]
HITCEL