So I am using the following answer I've gotten from another question,
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript">
function doSomething() {
$.get("somepage.php");
return false;
}
</script>
<a href="#" onclick="doSomething();">Click Me!</a>
I'm just wondering how I can pass a couple more variables from the page this code is on to the somepage.php
(the page that I am calling).
Also, once that .php page is ran, how can I then use some of the data that it generates back on the page that I ran this code from (basically to update the user that it has been ran by updating a field possibly).
It'd be great if someone could at least tell me how I can pass php variables over to the other .php page.
By the way, I know there is a similar question here: Run PHP code when user clicks link and pass variables
That also has an answer, but I am trying to use the code that I provided, since it's very simplistic.