Salve a tutti , ho scritto questo codice, ma vorrei che dopo aver lanciato la richiesta POST , la pagina si ricaricasse con la risposta di prova.php.
Grazie Anticipatamente, siete delle persone fantastiche dando aiuto gratuito a gente che ha problemi.
codice:<html> <head> </head> <body> <input type="button" onclick="javascript:inviaMex();" value="Invia"/> </body> <p <span id="txtHint"></span></p> <script type="text/javascript"> function inviaMex() { var dest_url = 'http://192.168.1.12/test/prova.php' var data = 'ciaoMinchione'; http = new XMLHttpRequest(); params = "data=" +data; http.open("POST", dest_url, false); http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); //optional callback function http.send(params); window.location.href = dest_url; document.getElementById("txtHint").innerHTML=http.responseText; } </script> </html>

Rispondi quotando