Para terminar tenemos el código del fichero php respuesta.php
1 2 3 4 5 6 7 8 9 10 11 12 | <? if (isset($_POST)) { $nombre=$_POST["deporte"]; $apellidos=$_POST["color"]; $correo=$_POST["correo"]; echo "{deporte:'$deporte', color:'$color', correo:'$correo'}"; } ?> |
