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.
Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    88
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Login and password script`

    Hi,
    I have a form where people sign up then I put there info into my login and password script. Is there a way that as soon as they sign up, there info is in the password script?

    If anyone could help me in any form or way, that would be great.

    Sirborder

  • #2
    New Coder
    Join Date
    May 2006
    Location
    Australia
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Your request isn't very clear. I assume you're talking about a login page with user name and password and posting to the form information to a second page with a script to verify the data. If so, you can use {$_POST['user_name']} and {$_POST['password']} directly in your script.

    But I've been told by someone who knows better than me that you should sanitise (strip slashes) from the data first, which means extra lines of code.

  • #3
    Registered User
    Join Date
    Apr 2006
    Posts
    88
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, but i have no idea what you just said.
    Please put it in easier terms. I'm a newcomer to html, php, and css.

  • #4
    Regular Coder
    Join Date
    Dec 2005
    Posts
    346
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Clarify what you are wanting. You aren't too clear on your request.

  • #5
    Registered User
    Join Date
    Apr 2006
    Posts
    88
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I wan't it to put the users info(name&password) right into the password script when they sign up, so i don't have to do it manually.

  • #6
    New Coder
    Join Date
    May 2006
    Location
    Australia
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You're still not being clear. What script? What is the process your users go through?

    We're noobies as far as your script goes. We know nothing. You'll need to give us as much detail in your description as you'd expect in an answer.

  • #7
    Regular Coder
    Join Date
    Dec 2005
    Posts
    346
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Post your registration script & your separate login script for us. Then we can help you. Secondly...do you make your users verify their e-mail address when they register before their account is activated?

  • #8
    Regular Coder
    Join Date
    Oct 2005
    Location
    Surrey, England
    Posts
    286
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Ok so i offen post this script to people but its attached again... i think its what your discribing...

    Its basicly just a login script i made when i was starting out php & SQL... its an automatic login system with 3 user levels.

    Edit cons.php (set database, username and password (first 4 -5 lines on the page) then dont worry about the rest)... open MySQL Tables.txt, run the queries in your database manager (probably phpMyAdmin or something) then just run the script...

    Its very easy to edit, basic standard HTML with minimal lines of code involved.
    Attached Files Attached Files

  • #9
    Registered User
    Join Date
    Apr 2006
    Posts
    88
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You guys need to work with me here. I have no idea how to use PHP.

  • #10
    Regular Coder
    Join Date
    Feb 2005
    Location
    Texas
    Posts
    472
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Define: "Password Script."
    If you're reading this, it may already be too late!


  •  

    Posting Permissions

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