Newbie can’t post a fetch request in javascript. The php server cannot read $_REQUEST[‘load’]
`const data = {
load: ‘this is a test’
};
const url=’https://website.php’;
const options = {
method: ‘POST’,
headers: {
‘Content-Type’: ‘application/json’,
‘Accept’: ‘application/json’
},
body: JSON.stringify(data)
};
const res = await fetch(url, options);
`
1