One of my HTML pages saves inputs from the user and stores them in local storage. For the purpose of this question I will refer only to my fName variabe. Input is taken and saved in local storage on one html page as follows.
function writeFName() {
first_name = document.querySelector('#fName_Input').value;
localStorage.setItem('fName', first_name);
var cfmF = confirm("Did you mean to enter: \n" + first_name + '?');
if (cfmF) {
console.log(first_name);
window.alert('Success!');
first_name = localStorage.getItem('fName');
} else {
window.alert('Please Re-Enter First Name');
}
}
The issue lies in that I want to use my PHP file, edBase.php to take this input, and pass it to my SQL database. I am completely at a loss as to how I parse fName variable from localstorage in my php file. I know how to write to the SQL database but how I write with a html input from another page is completely unknown to me.
Many thanks.