1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| <?
$login=$_POST['requiredlogin'];
$pass=$_POST['requiredpass'];
$nom=$_POST['requirednom'];
$pren=$_POST['requiredpren'];
$adresse=$_POST['requiredadresse'];
$cp=$_POST['requiredcp'];
$ville=$_POST['requiredville'];
$tel=$_POST['requiredtel'];
$email=$_POST['requiredemail'];
$origine=$_POST['origine'];
mysql_connect("serv","nombase","pass");
mysql_select_db("nombase");
$sql="INSERT INTO membres ";
$sql."(login, mdp, nom, prenom, adresse, cp, ville, tel, email, origine)";
$sql.=" VALUES ($login,$pass,$nom,$pren,$adresse,$cp,$ville,$tel,$email,$origine)";
$inscr=mysql_query($sql) or die (mysql_error()); |
Partager