The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

form action to login to neomail

Discussion in 'E-mail Discussions' started by miami_g, Sep 13, 2002.

  1. miami_g

    miami_g Active Member

    Joined:
    Dec 28, 2001
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    client does not want end users into cpanel to get email

    i have told him how to link directly to each box

    he wants a form action with user login password on home page


    anybody know the code?


    thankyou
     
  2. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    18
    There are probably more elegant ways, but this will work for most people.

    Create a file called login.php and put this in it (make sure there is no whilte space before any of this:

    &?php
    header(&location:http://$_POST[user]:$_POST[pass]@www.domain.com:2095/&);
    ?&

    Now create the form with text field for the Username and pass it user, and also with a password field and name it pass. Have that form post to the login.php page. I haven't tried this yet, but it should work.
     
Loading...

Share This Page