html1 obtains the data filled in by the user, sends it to PHP for calculation and outputs json, and html2 reads the json and displays the data to the user.
Now I want the user to jump directly to html2 after submission. How to achieve this.
I know that AJAX can return to the current page html1, but how to let html2 get the data.
If simple data is written directly in the url:
echo "<script>window.location.href='html2.html?name=admin'</script>";
Or save it in session