Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 28

Thread: re

  1. #1
    Regular Coder
    Join Date
    May 2009
    Posts
    813
    Thanks
    123
    Thanked 24 Times in 24 Posts

    re

    I need a login box that will make a password protected area, how do I do this? I have been looking on the web but have found nothing. Like can the box link to another webpage? And how will the box know if it is the right password? Do I need a script for this?
    Last edited by quartzy; 11-18-2010 at 03:36 AM.

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    you need to use server side and a database.

    Also, re for your thread title tells nothing about your problem.

  • #3
    Regular Coder
    Join Date
    May 2009
    Posts
    813
    Thanks
    123
    Thanked 24 Times in 24 Posts
    Yes it was an error that I entered re:
    So I need to use serverside and a database, why do I need a database? And do you know where can I learn about them, I have never done databases on the web before.

  • #4
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Well there may be other ways to "store" a username and password, but databases are for just that purpose.

    Is this going to be for a back room admin section? or for site users to register and login to the public section of your site?

  • #5
    Regular Coder
    Join Date
    May 2009
    Posts
    813
    Thanks
    123
    Thanked 24 Times in 24 Posts

    re

    It is a main website with a linked page for members only (certain professionals) to access images, so they need a login form which then directs them to the pages of images. So I think it is a back room section.

  • #6
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Quote Originally Posted by quartzy View Post
    It is a main website with a linked page for members only (certain professionals) to access images, so they need a login form which then directs them to the pages of images. So I think it is a back room section.
    Well it would be very simple to create a small "members" table in Mysql first. Then you could create a login form, which is just a standard html form, that compares the user's login to their username and password info with a simple query. This is the basics of what you would need. You could get a bit more complicated, but thats for another post.

  • #7
    Regular Coder
    Join Date
    May 2009
    Posts
    813
    Thanks
    123
    Thanked 24 Times in 24 Posts

    re

    Could I put a mySQL on this as I dont have a apache server I have a windows server.

    This is the site they have right now, very hard to see anything that is going on with all the code on the pages.
    http://leeoasis.org.uk Staff is the restricted area

  • #8
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Well you could download and install WAMP, which is a php, apache, and MySQL server package thats free.

    You could certainly use MS Access database. I dont like using it for real world database applications, but it should work well enough for your needs, since this is to be a back room section anyway.

  • #9
    Regular Coder
    Join Date
    May 2009
    Posts
    813
    Thanks
    123
    Thanked 24 Times in 24 Posts

    re

    Yes, I just want to use the easiest method, MS Access database, but I have no idea on how to do that. I have created a form and use expression web but hand code. So the controls are there but I dont know what I need or how to go about it.

  • #10
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    ok again first thing would be to create a database. Do you know anything about Access? or even have it?

  • #11
    Regular Coder
    Join Date
    May 2009
    Posts
    813
    Thanks
    123
    Thanked 24 Times in 24 Posts

    re

    I have used Access for office work, but never for the web. I have made a login form but it wants to post somewhere, where would I post it to?
    Code:
    <div id="access_form">
    <form action="" method="post">
    <tr><input name="username" type="username" /></tr>
    <tr><input name="password2" type="password" /></tr>
    </table>
    </div>
    the username is a password box as well

  • #12
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Quote Originally Posted by quartzy View Post
    I have used Access for office work, but never for the web. I have made a login form but it wants to post somewhere, where would I post it to?
    Code:
    <div id="access_form">
    <form action="" method="post">
    <tr><input name="username" type="username" /></tr>
    <tr><input name="password2" type="password" /></tr>
    </table>
    </div>
    the username is a password box as well
    Your action would be where you want a user to "go" once the login is successful. For example, once they enter their username and password, and it matches their username and password in the database, you might send them to an adminIndex page. So the action would be action="adminIndex.html"

  • #13
    Regular Coder
    Join Date
    May 2009
    Posts
    813
    Thanks
    123
    Thanked 24 Times in 24 Posts

    re

    So would I just import an access database onto my site? The same way I do a word doc or pdf? I have Access software.

  • #14
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    You dont import a database to your site. You create a database, create each table in the database, then pull information from the database using server-side languages.

    You should really learn a bit about SQL and php at w3schools.com.

  • #15
    Regular Coder
    Join Date
    May 2009
    Posts
    813
    Thanks
    123
    Thanked 24 Times in 24 Posts

    re

    I am learning mySQL but it keeps throwing up errors on the syntax and I have not got a manual just a training DVD.

    You said I could use an access database, Why cant I make this Access database and then import it into my website folder? Or in my controls in EW there is mySQL data source control, is that a database. I am just looking for some practical help on how to do this.


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •