I have a jquery function through which I am loading as a light box and sending a value to the loaded file, the code is like below
$(document).ready(function() {
$(".jq_btn_preview").click(function() {
gl_popup_id = "#popup_content";
show_loader();
$(gl_popup_id).load("<?php echo plugins_url(); ?>/<?php echo basename(dirname(__FILE__));?>/preview1.php",{url:'<?php echo plugins_url(); ?>/<?php echo basename(dirname(__FILE__));?>'}, function() {
//centering with css
centerPopup();
//load popup
loadPopup();
});
});
});
and in the preview1.php file I want to get the value of the url writing
$url = $_GET('url');
its showing
Fatal error: Function name must be a string
I can not understand how will i get the value of url
$_GET is an array not a function, use
$_GET['url']