Results 1 to 3 of 3

Is there any way to do this in PHP (or with a combination of JS)?

This is a discussion on Is there any way to do this in PHP (or with a combination of JS)? within the Programming forums, part of the Web Designing & Development category; There's a login form on page A: http://www.example.com/A.html The 'action' attribute of which is: action="/B.html" So when someone logs in ...

  1. #1
    Member immediate's Avatar
    Join Date
    Oct 2009
    Location
    kavoir.com
    Posts
    60

    Default Is there any way to do this in PHP (or with a combination of JS)?

    There's a login form on page A: http://www.example.com/A.html

    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 <iframe></iframe> 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 <iframe></iframe>? So after the person logs in from A.html, he arrives at C.html with the actual CP dashboard framed in an <iframe>.

    I have absolutely no clue in achieving this. Maybe the form will be submitted to C.html first and C.html submits the login details to B.html (framed in C.html) via JavaScript? How?
    We are a humble start-up in US that produces data products. We are Usable Databases.

  2. #2
    Junior Member
    Join Date
    Nov 2009
    Posts
    20

    Default Re: Is there any way to do this in PHP (or with a combination of JS)?

    sorry imidiate i have no idea about that but your question built interest to solve the problem. i will going to search right now and i will get solution tomorrow and give you.

  3. #3
    Senior Member
    Join Date
    Mar 2011
    Posts
    110

    Default Re: Is there any way to do this in PHP (or with a combination of JS)?

    I am new in PHP field if anybody have idea about this please mention it.