erwan83 Du Shift DEL tu te méfieras ! | Code :
- echo' <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
- <script>
- $.post("https://xxxx.io/api/v1/track", { api_key:"hjgfhjgfhgfhgf", location:"EUR", country:"'.$country.'", user:"'.$user.'" }, function( data ) {}, "json" )
- .done(function(data)
- {
- let datum=data;
- console.log(datum);
- $.post("file_paiement.php", { data: datum }, function( data ) {}, "json" )
- document.getElementById("form" ).innerHTML = \'<form id="form" method="POST" action="tuttut.php">\' +
- \'<input type="hidden" name="data" value="\' + datum +\'">\' +
- \'<input type="submit" value="SEND"></input></form>\';
- /// JE ME SERS DU BOUTON TEMPORAIREMENT POUR VOIR LA PAGE ET RECUPERER "visuellement" LES DONNEES
- $.ajax({
- type: \'POST\',
- url: "tuttut.php",
- data: datum,
- success: function(result) {
- alert(\'the data was successfully sent to the server\');
- console.log(datum);
- }
- })
- });
- </script>';
|
Message édité par erwan83 le 18-02-2024 à 18:57:04 ---------------
http://www.ypikay.com
|