|
|
@ -22,30 +22,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
<body onload="settingOpen()">
|
|
|
|
<body onload="settingOpen()">
|
|
|
|
|
|
|
|
<button id="buttons" type="button" class="btn btn-primary btn-lg" >insererjoueur</button>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
<form method="post">
|
|
|
|
<form method="post">
|
|
|
|
<input name="highscore" type="text">
|
|
|
|
<input name="highscore" type="text">
|
|
|
|
Entrez votre pseudo : <input type="text" name="nomjoueur"/> <br/>
|
|
|
|
Entrez votre pseudo : <input type="text" name="nomjoueur"/> <br/>
|
|
|
|
<input type="submit" name="valider" value="OK"/>
|
|
|
|
<input type="submit" name="valider" value="OK"/>
|
|
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
<?php
|
|
|
|
-->
|
|
|
|
require_once("ConnexionBD.php");
|
|
|
|
<script>
|
|
|
|
session_start();
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
$(document).on('click','#buttons',function() {
|
|
|
|
if (isset ($_POST['valider'])){
|
|
|
|
alert("Création des lignes tables")
|
|
|
|
|
|
|
|
$("#div1").load('insererscore.php')
|
|
|
|
$nomjoueur=$_POST['nomjoueur'];
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
connectmabase();
|
|
|
|
<div id="div1">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
$sql = "INSERT INTO highscore.joueur VALUES ('','$nomjoueur')";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mysql_query ($sql) or die ('Erreur SQL !'.$sql.'<br />'.mysql_error());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "<h2 id='ids'>Nom : <strong>$nomjoueur</strong></h2>";
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="pageAccueil">
|
|
|
|
<div id="pageAccueil">
|
|
|
|
<div class="logo">
|
|
|
|
<div class="logo">
|
|
|
@ -795,6 +791,3 @@ echo "<h2 id='ids'>Nom : <strong>$nomjoueur</strong></h2>";
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|