+ Reply to Thread
Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 59

Thread: Creating login/registration forms with php

  1. #31
    st_holysinner is offline Newbie
    Join Date
    Feb 2010
    Location
    Philippines
    Posts
    2
    Rep Power
    0

    Re: Creating login/registration forms with php

    i downloaded the attached files for this. when i run registration it says Table 'test.users' doesn't exist.. help me pls..

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

     
  3. #32
    Edhouse is offline Newbie
    Join Date
    Feb 2010
    Posts
    6
    Rep Power
    0

    Re: Creating login/registration forms with php

    I also thank for this tutorial.

  4. #33
    kailas is offline Newbie
    Join Date
    Feb 2010
    Posts
    16
    Rep Power
    0

    Re: Creating login/registration forms with php

    To create registration forms can be used PHP Form. It is convenient and simple.

  5. #34
    WhySG.com is offline Newbie
    Join Date
    Apr 2010
    Posts
    3
    Rep Power
    0

    Re: Creating login/registration forms with php

    After I entered the details in the registration form, and pressed next, nothing showed up.

    Using firefox, windows 7, apache 2, php5............

    anyone has any idea?
    Last edited by WhySG.com; 04-13-2010 at 02:12 AM.

  6. #35
    kasha is offline Newbie
    Join Date
    Mar 2010
    Posts
    9
    Rep Power
    0

    Re: Creating login/registration forms with php

    Quote Originally Posted by WhySG.com View Post
    After I entered the details in the registration form, and pressed next, nothing showed up.

    Using firefox, windows 7, apache 2, php5............

    anyone has any idea?
    Have u checked that the location of the registration.php file is in the same directory/location as your registration form?

  7. #36
    WhySG.com is offline Newbie
    Join Date
    Apr 2010
    Posts
    3
    Rep Power
    0

    Re: Creating login/registration forms with php

    Quote Originally Posted by kasha View Post
    Have u checked that the location of the registration.php file is in the same directory/location as your registration form?
    yup.......... i've checked. weird since it does not work. doesnt seem to input details into db also i think. but no error message.

  8. #37
    kasha is offline Newbie
    Join Date
    Mar 2010
    Posts
    9
    Rep Power
    0

    Re: Creating login/registration forms with php

    would u mind pasting your code?
    The connection to the database didnt work for me also but there was no $password value and when i changed that it started working.
    Paste your code, and we can work on what could possibley be wrong

    (p.s. im also a beginner so sorry in advance if i cant find the issue)

  9. #38
    pfrangkie is offline Newbie
    Join Date
    May 2010
    Location
    Philippines
    Posts
    2
    Rep Power
    0

    Re: Creating login/registration forms with php

    super nice.. super nice.. I have been looking for this site so many years ago.. and at last I've found it.. thanks thanks.. more power to the administrator..

  10. #39
    WhySG.com is offline Newbie
    Join Date
    Apr 2010
    Posts
    3
    Rep Power
    0

    Re: Creating login/registration forms with php

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>register</title>
    </head>
    <body bgcolor="black" style="color:white;">
    <FORM ACTION="register.php" METHOD=get>
    <h1>welcome to the registration page</h1>
    please input the registration details to create an account here<br>
    <table border="2">
    <tr>
    <td>User Name :</td><td><input name="regname" type="text" size"20"></input></td>
    </tr>
    <tr>
    <td>email :</td><td><input name="regemail" type="text" size"20"></input></td>
    </tr>
    <tr>
    <td>password :</td><td><input name="regpass1" type="password" size"20"></input></td>
    </tr>
    <tr>
    <td>retype password :</td><td><input name="regpass2" type="password" size"20"></input></td>
    </tr>
    </table>
    <input type="submit" value="register me!"></input>
    </FORM>
    </body>
    </html>


    This is the registerform.php

    ============================================
    <?php
    if($_GET["regname"] && $_GET["regemail"] && $_GET["regpass1"] && $_GET["regpass2"] )
    {
    if($_GET["regpass1"]==$_GET["regpass2"])
    {
    $servername="localhost";
    $username="root";
    $conn= mysql_connect($servername,$username)or die(mysql_error());
    mysql_select_db("test",$conn);
    $sql="insert into users (name,email,password)values('$_GET[regname]','$_GET[regemail]','$_GET[regpass1]')";
    $result=mysql_query($sql,$conn) or die(mysql_error());
    print "<h1>you have registered sucessfully</h1>";

    print "<a href='index.php'>go to login page</a>";
    }
    else print "passwords doesnt match";
    }
    else print"invaild data";
    ?>

    This is the register.php

  11. #40
    osenorman is offline Newbie
    Join Date
    May 2010
    Posts
    1
    Rep Power
    0

    Re: Creating login/registration forms with php

    Very nicely done and formatted! +rep
    I believe it will be the last tutorial of 2008

    Cosmetic Surgery
    Boob Job

+ Reply to Thread
Page 4 of 6 FirstFirst ... 23456 LastLast

Thread Information

Users Browsing this Thread

There are currently 25 users browsing this thread. (0 members and 25 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