![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
21/08/2014, 12:44
|
![Avatar de manyblue](http://static.forosdelweb.com/customavatars/avatar226810_1.gif) | | | Fecha de Ingreso: marzo-2008
Mensajes: 329
Antigüedad: 16 años, 10 meses Puntos: 10 | |
Respuesta: Duda con encriptación de contraseña Yo encripto la contraseña con md5 y me va bien en local y servidor real. No conozco muy bien como lo intentas hacer tu, pero si te sirve de algo aqui está como lo hago yo:
Código:
GetSQLValueString($_POST['nombre'], "text"),
GetSQLValueString($_POST['apellidos'], "text"),
GetSQLValueString($_POST['email'], "text"),
GetSQLValueString(md5($_POST['password']), "text"),
GetSQLValueString($_POST['activo'], "int"),
GetSQLValueString($_POST['nick_usuario'], "text"),
GetSQLValueString($_POST['imagen_usuario'], "text"),
GetSQLValueString($_POST['telefono'], "text"),
GetSQLValueString($_POST['direccion'], "text"),
GetSQLValueString($_POST['poblacion'], "text"),
GetSQLValueString($_POST['cod_postal'], "int"),
GetSQLValueString($_POST['provincia'], "text"),
GetSQLValueString($_POST['pais'], "text"),
GetSQLValueString($_POST['nivel'], "int"),
GetSQLValueString($_POST['fecha_alta_usuario'], "date"),
GetSQLValueString($_POST['fecha_actualizacion_usuario'], "date"));
Espero te sirva de algo, si no espera respuesta del foro que muchísimo más que yo.
Un saludo: Manyblue |