+ Reply to Thread
Results 1 to 6 of 6

Thread: Got Html site -want to add a password log on section . advice welcome

  1. #1
    redhawk is offline x10Hosting Member redhawk is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    5

    Got Html site -want to add a password log on section . advice welcome

    Hi,

    The site I've got is in html - can I add a section with a password logon using php/MySql - presume I would save the log on page and the pages it links to as php pages - can I mix html and php in this way?


    Sandy

  2. #2
    cowctcat's Avatar
    cowctcat is offline x10 Lieutenant cowctcat is an unknown quantity at this point
    Join Date
    Nov 2007
    Location
    In front of a computer
    Posts
    401

    Re: Got Html site -want to add a password log on section . advice welcome

    yes you can combine them but dude make it easy on yourself just put the files you want to password protect all in one folder and use password protect in cpannel
    --cowctcat

  3. #3
    mattura's Avatar
    mattura is offline x10 Elder mattura is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    563

    Re: Got Html site -want to add a password log on section . advice welcome

    Yeah for a simple one, just use the .htaccess (google that) on the secret folder.

    If you want the php solution, you need a login form which posts to a php file, which starts a session and lots of other stuff, and you have to be really careful about security (read the php security pages: http://www.php.net/manual/en/security.php).
    If you really want, the logon box and page can be in html, with a:
    <form action='login.php' method=post>
    then you can put all your security in 'login.php', and from there continue to the secure area.
    ----
    Life is a game. The conception is terrible but the graphics are amazing!
    matt.elementfx.com

  4. #4
    Slinki is offline x10Hosting Member Slinki is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    21

    Re: Got Html site -want to add a password log on section . advice welcome

    I used something along the lines of this

  5. #5
    blackpsycho is offline x10Hosting Member blackpsycho is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    48

    Re: Got Html site -want to add a password log on section . advice welcome

    are you wanting this just for yourself or for members on your site??? if you just want it for yourself then do what was said before and just password protect the pages through cpanel... if you want to use it for members and don't need anything fancy i have one i can pass along to you. it includes a forgotten password form... very small code and easy to implement. doesn't use any sort of verification to stop spam bots from registering on the site but otherwise it is secure.. iv'e had no problems with spambots on my site with it so.
    if you want more info email me:
    blackpsycho@punishersquad.x10hosting.com

  6. #6
    redhawk is offline x10Hosting Member redhawk is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    5

    Re: Got Html site -want to add a password log on section . advice welcome

    Thanks to everybody for their advice - got an idea now what I can do


    regards


    Sandy

+ Reply to Thread

Similar Threads

  1. a site without frames and a site with frame
    By n4tec in forum Scripts & 3rd Party Apps
    Replies: 18
    Last Post: 12-31-2007, 02:20 PM
  2. Link Exchange
    By Conor in forum Scripts & 3rd Party Apps
    Replies: 117
    Last Post: 12-09-2007, 12:20 PM
  3. What is XML!
    By wizeman in forum Tutorials
    Replies: 6
    Last Post: 08-27-2005, 12:05 PM
  4. My site.. Need staff... maybe...
    By dsfreak in forum Scripts & 3rd Party Apps
    Replies: 6
    Last Post: 08-05-2005, 10:07 PM
  5. New Site Design- Reward
    By NewFuture in forum Scripts & 3rd Party Apps
    Replies: 6
    Last Post: 07-26-2005, 08:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers