Question and answer is powered by AnsPress.io
I am store a value in a variable using script language and I want to pass the variable value in the another php location page. I don’t know how to work this?
to pass a variable value another php page using javascript use window.location.href method. First get value and store value in a variable then pass the value another php location. For example
var id=document.getElementById("id"); window.location.href="another_page.php?id=" +id;