I have a login script in an iframe and after you've successfully logged in, it brings up the index page of the member

header("location: member-index.php;

On my main page (_parent) I have an AJAX include with the ID of 'regBox'.
How would I cross the iframe and make the 'member-index.php' page load in the AJAX include.

I was thinking something along the lines of

header("location: <a href='javascript:ajaxpage('member-index.php', 'regBox');' target='_parent'>");

Or even

echo '<a href='javascript:ajaxpage('member-index.php', 'regBox'); target='_parent'>'';

But I didn't get anywhere.
Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.