Quick question, why this is not working?
if ( xmlhttp.responseText )
{
location.href = "result.php"
document.getElementById( 'page-result' ).innerHTML = xmlhttp.responseText;
}
What I want to do is put search result on div on another page.
Redirect to your next page by passing the message in the query string like…
In result.php, output the content of the parameter “responseText” wherever you want.
ex. in php:
<?php echo $_GET["responseText"]; ?>