Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Experiencia(...parámetros para definir la exp final){
- return expC = 50;
- }
- <button id="btnInfComb"> <a href="enviaDatosCombate.php">Aceptar</a></button>
- function EnviaDatosCombate() {
- var xhr = new XMLHttpRequest()
- xhr.open("POST","ActualizaStat.php",true)
- xhr.onreadystatechange = function () {
- if(xhr.readyState == 4 && xhr.status == 200){
- var a = Experiencia()
- //Aca dentro que tendria que hacer para poder mandar el valor en
- //SEND
- }
- }
- xhr.send(a)
- }
- <?php
- $datos = $_POST['a'];
- echo $datos;
- ?>
Add Comment
Please, Sign In to add comment