Hmm... well I found this about javascript and php together:
<?php
// Call PHP function from javascript with parameters
function myphpfunction($x, $y){
$z=$x+$y;
return 'The sum is: '.$z;
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<script type="text/javascript">
alert("<?php echo myphpfunction(4,90)?>");
</script>
</head>
<body>
</body>
</html>
Now it would seem that this does not refresh the page, I am wondering if it is as good as AJAX?
And maxxd, It looks like the fetch uses a URL, am I correct?
Josh
I guess this would be for a return only.