I'm new in programing websites so forgive my lack of knowledge... I'd like to load some content from database without reloading page. So using jquery I can load php file which conects with database
$("body").on("click",".editpages", function(){
$('#pagesedit').load('/templates/admin/pages.php #edit');
});
Problem is that I need to send one variable that I can use it in my php file. How can I do that?
http://example.com/pages.php?var=hello, then access thru$_GET['var']in PHP,#hash doesn't get set in server sideajaxmethods for variable passing