There are many ways to do this, here's one (sending/requesting page):
Code:
<!DOCTYPE html>
<html>
<head>
<title>Sending/Requesting</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
$(document).on('click', '.namen', function(e){
var woon = $(this).text();
$.ajax({
type: 'post',
url: 'member.php',
data: {variable: woon}
}).then(function(data){$('#uitkomst').html(data);});
e.preventDefault();
});
</script>
</head>
<body>
<a href="#" class="namen">Namen</a><br>
<a href="#" class="namen">Something Else</a>
<div id="uitkomst"></div>
</body>
</html>
And on member.php:
PHP Code:
<?php
if(isset($_POST['variable'])){
echo $_POST['variable'];
}
?>
But, if that's all you want to do, there's no need for AJAX or for an external page.
Bookmarks