How can I pass saved localStorage web data to a php script?

前端 未结 2 1478
名媛妹妹
名媛妹妹 2021-01-15 03:10

Alright, so I\'m having some issues on trying to find out how to pass some data that i have saved in localStorage over to a php script that I wrote, so I can then send that

2条回答
  •  执笔经年
    2021-01-15 04:02

    You have code error

    It should be oReq.onload = reqListener; oReq.open("get", "snap.php? lat="+localStorage.latitude+"&lon="+localStorage. lon, true); oReq.send();

提交回复
热议问题