Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clean($str) {
- $str = @trim($str);
- if(get_magic_quotes_gpc()) {
- $str = stripslashes($str);
- }
- return mysql_real_escape_string($str);
- }
- //Limpiar los valores recibidos del POST
- $nombre = clean($_POST['nombre']);
- $apellido = clean($_POST['apellido']);
- $telefono = clean($_POST['telefono']);
- $domicilio = clean($_POST['domicilio']);
- $llamamiento = clean($_POST['llamamiento']);
- $agregado_por = clean($_POST['agregado_por']);
- if ($db_found) {
- $SQL = "INSERT INTO contactos_tbl (nombre, apellido, telefono, domicilio, llamamiento, agregado_por) VALUES ('$nombre', '$apellido', '$telefono','$domicilio','$llamamiento','$agregado_por')";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement