#1
  1. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    35
    Rep Power
    15
    I have a password-protected page using .htaccess. I works great for what it does: when I call the page in the browser, a box pops up asking for my name and password. However, I want to creat a login page for the user. There should be a two text input boxes, one for user name, and one for password, plus a submit button. This is instead of the pop-up box. Any way of doing this?
    Dusty
    ------------------------------------------------
    http://TerribleHost.com 50megs/php/mySQL $9.99 month
    ------------------------------------------------


    [This message has been edited by dusty351 (edited November 04, 2000).]

    [This message has been edited by dusty351 (edited November 04, 2000).]
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    12
    Rep Power
    0
    Dusty,

    Yes this is possible, you would do it using Perl or PHP, or any other server-side programming language, C++, Java... etc.
    If you are familiar with any one of these languages then you need to learn how to do CGI with them, then you can create a page to suit your needs. Have a nice day! (:
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    1
    Rep Power
    0
    Theres quite a nice PHP script to do this, at http://phortify.sourceforge.net/ .
  6. #4
  7. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    35
    Rep Power
    15
    Acually, the problem is that the login form has to be at one website (TerribleHost.com) and the user is logging into a second site (the web-based Control Panel in thier own site).

    So I'm looking for a way the collect this info from the user via a form, and send it to another site, either GET-form style (http://somewhere.com/menu?user=joe&password=bubblegum) or in the header info with PHP like this:
    Header ("user:joe; password:bubblegum")

    But I don't know the syntax.


    ------------------
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Location
    Denmark
    Posts
    69
    Rep Power
    18
    (argh... trying to type ":" and p, but it keeps messing up, here's another try! )

    hi there!

    can't you just redirect the surfer to this url:
    http:// username : password @www.yoursite.com/secret_area/??

    [This message has been edited by SiS (edited November 03, 2000).]

    [This message has been edited by SiS (edited November 03, 2000).]

    [This message has been edited by SiS (edited November 03, 2000).]

    [This message has been edited by SiS (edited November 03, 2000).]

    Comments on this post

    • dotancohen agrees
  10. #6
  11. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    35
    Rep Power
    15
    Thank you. That was exactly what I was looking for. Good luck with your :'s and p's, SiS.

    Dusty
    ------------------------------------------------
    http://TerribleHost.com 50megs/php/mySQL $9.99 month
    ------------------------------------------------



    [This message has been edited by dusty351 (edited November 04, 2000).]
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Location
    Denmark
    Posts
    69
    Rep Power
    18
    thanx!!

IMN logo majestic logo threadwatch logo seochat tools logo