Add Login to HTML Page on Second Domain

Discussion in 'Customization & add-ons' started by sboben, Aug 28, 2007.

  1. sboben

    sboben New Member

    Joined:
    Oct 5, 2006
    Messages:
    48
    I have a second domain for some of my site's content and I want to insert the aMember login form on the HTML pages there. These are NOT PHP pages, they're HTML pages.

    The aMember PRO user guide indicates you can use this code below, but it does not work in my "two-domain" situation. It simply redirects to the real login page at the first domain where aMember resides. (For the action URL, I'm using the absolute path to the amember login page at the first domain.)

    Is there a way to make this work?

    Code:
    <form action="/amember/login.php" method=post>
    Username: <input type=text name=amember_login size=10><br>
    Password: <input type=password name=amember_pass size=10><br>
    <input type=submit value=Login>
    </form>
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    Hmm, how it should work then? Do you want to protect files on second domain as well?
    If so you need to install amember_remote module here.
  3. sboben

    sboben New Member

    Joined:
    Oct 5, 2006
    Messages:
    48
    No, I don't want to protect any files, I just want the user to be able to log in from the remote site.

    If you visit http://iWebLibrary.com, you will see the login area near the top right corner of the screen. Use these to see what I mean:

    username: amemberdummy
    password: amemberdummy

    My aMember installation is at 11mystics.com, not at the other domain. I just want to be able to login from the other domain. That's all.

Share This Page