I want to make a call to an object and redirect it that is in the parent of an iframe from php. I would swear it was simple, I think I have done something like this for a long time.
The fact is that this is the piece of code I have:
if($_POST['pw_login'] == $sesion['passadmin']){
echo "<script language='javascript'>window.parent.document.getElementById('trip_iframe').location='products_list.php';</script>";
}
and I've tried
window.parent.document.getElementById('trip_iframe').src='products_list.php';
window.parent.document.getElementById('trip_iframe').href='products_list.php';
parent.document.getElementById('trip_iframe').location='products_list.php';
parent.document.getElementById('trip_iframe').src='products_list.php';
and some other things, I do not know what I'm doing wrong.