I have an array in which I have some values like
$errors[]="Invalid username";
$errors[]="Invalid pass word";
and there is a jquery function to load the page. Can we pass this array through this jquery function?
$("#menu_div2").load("<?=ROOT_PATH?>ajax/div_openreviewpages.php?error=<?=$errors?>");
When i try to do this, I get an error on div_openreviewpages.php. It shows as array variable but when i try to do foreach on this array it is showing invalid argument supplied.