+ Reply to Thread
Page 6 of 6 FirstFirst ... 456
Results 51 to 59 of 59

Thread: Creating login/registration forms with php

  1. #51
    Shina Memud is offline Newbie
    Join Date
    Mar 2011
    Location
    Prague, Czech Republic, Czech Republic
    Posts
    2
    Rep Power
    0

    Re: Creating login/registration forms with php

    Hi everyone,

    I love this forum and I am new to PHP, I am currently using Mysql for my database and I am the form (provided here) in my PHP and everything is working fine.

    My problem is...I keep getting this message below but everything seems to be working.


    Notice: Undefined index: loging in C:\xampp\htdocs\training2\index.php on line 36

    Notice: Undefined index: userlogin in C:\xampp\htdocs\training2\index.php on line 72

    Notice: Undefined index: password in C:\xampp\htdocs\training2\index.php on line 72
    wrong password or username, please try again


    Maybe I need to remove something or...not sure. Any info will be very helpful.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #52
    Join Date
    Jun 2010
    Location
    Vancouver, Eh.
    Posts
    4,020
    Blog Entries
    7
    Rep Power
    39

    Re: Creating login/registration forms with php

    On the login page you seemed to have logging spelt wrong, as well userlogin and password were not sent correctly to it.
    Be sure to read the updated FAQ || Health is achieved through 10,000 different steps.
    A textual description can be only part of your question, be sure to provide sample results, errors and your platform in the appropriate forums while asking.

  4. #53
    Shina Memud is offline Newbie
    Join Date
    Mar 2011
    Location
    Prague, Czech Republic, Czech Republic
    Posts
    2
    Rep Power
    0

    Re: Creating login/registration forms with php

    Quote Originally Posted by Alexander View Post
    On the login page you seemed to have logging spelt wrong, as well userlogin and password were not sent correctly to it.
    I changed that and it gave me the same ..


    Notice: Undefined index: logging in C:\xampp\htdocs\training2\index.php on line 36


    As for the userlogin and password, what can I do to make it send correctly?

  5. #54
    jOviC45 is offline Newbie
    Join Date
    May 2011
    Posts
    1
    Rep Power
    0

    Re: Creating login/registration forms with php

    Hello everyone,

    I downloaded the files and also I already created a database.. but when i run it, i get this error message:

    ---------------------------------------------------------
    Notice: Undefined index: logged in C:\wamp\www\OJT\test\index.php on line 10

    Notice: Undefined index: userlogin in C:\wamp\www\OJT\test\index.php on line 51

    Notice: Undefined index: password in C:\wamp\www\OJT\test\index.php on line 51
    wrong pawssword or username, please try againplease enter your login information to proceed with our site

    --------------------------------------------------------

    it always appears when i run the index.php, i didnt change the codes.. ive just run..

    what should i do to make it perfect..

  6. #55
    andyrichin is offline Newbie
    Join Date
    May 2011
    Posts
    2
    Rep Power
    0

    Re: Creating login/registration forms with php

    So I downloaded your tutorial and I am trying to implement into a site I am building. However, when I register I am getting an error. Am I supposed to include:

    CREATE TABLE `test`.`users` (
    `id` INT NOT NULL auto_increment ,
    `name` VARCHAR( 20 ) NOT NULL ,
    `password` VARCHAR( 20 ) NOT NULL ,
    `email` VARCHAR( 20 ) NOT NULL ,
    PRIMARY KEY ( `id` )
    )


    And if so, where do I put this mySql code? Thanks.

  7. #56
    andyrichin is offline Newbie
    Join Date
    May 2011
    Posts
    2
    Rep Power
    0

    Re: Creating login/registration forms with php

    This is the error I keep getting. Any thoughts?

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in /home/lizette/public_html/Time4Moore.com/DEV/register.php on line 10
    Access denied for user 'root'@'localhost' (using password: NO)

  8. #57
    Artulo is offline Newbie
    Join Date
    Nov 2010
    Posts
    4
    Rep Power
    0

    Re: Creating login/registration forms with php

    ( ! ) Notice: Undefined index: logged in C:\wamp\www\index.php on line 10
    ( ! ) Notice: Use of undefined constant user - assumed 'user' in C:\wamp\www\index.php on line 25
    ( ! ) Notice: Use of undefined constant userlogin - assumed 'userlogin' in C:\wamp\www\index.php on line 25
    ( ! ) Notice: Use of undefined constant logged - assumed 'logged' in C:\wamp\www\index.php on line 26

    The script works. however i keep getting these ugly orange boxes popping up whenever i login with the script. Before i login i get these errors
    ( ! ) Notice: Undefined index: logging in C:\wamp\www\index.php on line 10
    ( ! ) Notice: Undefined index: logging in C:\wamp\www\index.php on line 15
    what can the problem be? Its all working? Its just annoying with those orange boxes in the way. i am using wampserver

  9. #58
    Aben Gella is offline Newbie
    Join Date
    Sep 2011
    Location
    Angono, Rizal, Philippines
    Posts
    1
    Rep Power
    0

    Re: Creating login/registration forms with php

    Good day amrosama, i am new to php and i would like to ask you i tried to download the code and it displays unnecessary messages.. can you please help me with this problem? troubleshooting.doc

    i am also using wampserver

  10. #59
    SoN9ne's Avatar
    SoN9ne is offline Programmer
    Join Date
    Mar 2010
    Location
    Juno Beach, Florida, United States
    Posts
    125
    Rep Power
    0

    Re: Creating login/registration forms with php

    This is a decent start but far from finished or good enough to be used in a live environment....

    Why is the password sent in raw form?
    Why are you using GET for authentication? This is against all web standards...
    Proper PHP would be to use
    Code:
    $_GET['userlogin'
    instead of
    Code:
    $_GET[userlogin
    (although $_GET is the wrong method to use as $_POST is the proper).
    Your MySQL is open to injection...
    The session is vulnerable to session hijacking and fixation.
    The database stores the raw password?!?!?! This is considered bad practice (although some would argue this) and the method used in this script is a textbook example of bad password practices. If you insist on storing the password in it;s raw form, you should not use it as an authentication but instead validate a hash of their password against another hash in the db.. never send raw passwords and never compare against a raw password in the db...


    ---------- Post added at 03:02 PM ---------- Previous post was at 02:59 PM ----------

    Quote Originally Posted by Aben Gella View Post
    Good day amrosama, i am new to php and i would like to ask you i tried to download the code and it displays unnecessary messages.. can you please help me with this problem? Attachment 4225

    i am also using wampserver
    The majority of the errors you are getting are because
    Code:
    $_GET[userlogin
    should be
    Code:
    $_GET['userlogin'
    (note the ' wrapping the key).
    Update all the array keys to use the ' and your errors will go away.
    Also, the session check will throw an error too for first time users.
    Code:
    if($_SESSION["logged"]) 
    should also be
    Code:
    if(isset($_SESSION["logged"]) && ($_SESSION["logged"] === true) ) 
    Please note that this login script is not good to use on a live site unless you don't care about people gaining access to it or seeing you raw password.
    "Life would be so much easier if we only had the source code."

+ Reply to Thread
Page 6 of 6 FirstFirst ... 456

Thread Information

Users Browsing this Thread

There are currently 24 users browsing this thread. (0 members and 24 guests)

Similar Threads

  1. Secure Registration and Login for CMS
    By iamchristill in forum PHP Development
    Replies: 2
    Last Post: 11-01-2011, 06:17 PM
  2. Login and Register Forms, using database
    By Zvone in forum Visual Basic Programming
    Replies: 2
    Last Post: 09-03-2011, 11:17 AM
  3. Problem with creating forms with same dimension.
    By chax in forum Visual Basic Programming
    Replies: 2
    Last Post: 08-12-2011, 09:46 PM
  4. Link my user registration/login to my blog?
    By wheay in forum Database & Database Programming
    Replies: 2
    Last Post: 04-26-2011, 10:25 AM
  5. creating forms with php
    By achi in forum PHP Development
    Replies: 2
    Last Post: 03-23-2009, 08:24 AM

Tags for this Thread

Bookmarks

Posting Permissions

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