Im to trying to send javascript response to another page by using localstorage or by using session but im unable to get response here is javascript fun below eg
page1.php
function data(responseData) {
alert(responseData.dataValue); eg:name //here im getting data
alert("Total = "+responseData.dataValue);
$("#submit-link").attr('href',"https://example.com/paymentdata.php?totalScore="+total);
}
page2.php
Here i called the link
<button id="process">Process</button>
<br />
<a href="#" id="submit-link">links</a> // i want that name here
I have tried i got nothing. All i want from page1.php data get in page2.php data i have tried through session also no result