Im trying to get the .load method to post to a page and then echo back what was posted to see if it is working, i can’t get this to work. I tells me that the variable is undefined, here is what i have:
teachers.php:
<?php
echo $POST['class'];
The JS:
$('#test').load('teacher.php', {class: 'test'});
That is triggered once something is clicked.
#test is a <div> that I want the data to post to.
Thanks for the help.
It’s
$_POSTinstead of$POST. Don’t know if that was a typo, but that will also create some issues.