Is there any way to do this in PHP (or with a combination of
The 'action' attribute of which is: action="/B.html"
So when someone logs in with the form on A.html, the data will be submitted to / visitor redirected to B.html.
Now what I want is: there's an on /C.html, framing B.html, is there any way so that when someone logs in with the form on A.html, the visitor is redirected to C.html and the login details is submitted to B.html that's framed on C.html in the ? So after the person logs in from A.html, he arrives at C.html with the actual CP dashboard framed in an
1) Avoid iframes like the plague.
3) If you want it quick and dirty:
Submit your form to B.html / B.php / whatever.
In order to prevent an infinite loop, you'll need to tell B.html NOT to redirect again if it finds itself inside an iframe.
And of course, it's up to you to make sure that the whole thing is secure.
1. Separate form processors in individual .php files, those should only and always redirect upon success and accept only POST.
2. If you need to track login data in an iframe (or with AJAX), have a separate script that reads such info from session or database. Naturally, have the login form processor put any relevant data into the session.