
22/11/2004, 16:47
|
| | Fecha de Ingreso: diciembre-2003
Mensajes: 1.583
Antigüedad: 21 años, 2 meses Puntos: 13 | |
Seguramente el servidor tiene deshabilitadas las variables globales, intenta asi:
<?php
include("lib.php");
$Cnx=CnxMSSQL();
# AÑADIR EL NUEVO REGISTRO
$Nombre = $_POST['Nombre'];
$APat = $_POST['APat'];
$AMat= $_POST['AMat'];
$Usuario= $_POST['Usuario'];
$Clave= $_POST['Clave'];
$sql = "INSERT INTO $tabla (Nombre, APaterno, AMaterno, Usuario, Clave)
VALUES ('$Nombre', '$APat','$AMat','$Usuario','$Clave')";
mssql_query($sql,$Cnx);
echo "Sus datos han sido agregados.\n";
mssql_close($Cnx);
?> |