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 11 of 11

Thread: login form

  1. #1
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    login form

    hi i have a problem with login form

    i have a forum and i want to make a login form at my home page so u can login from home pahe to Forum

    i made 2 forms username and password and a submit button

    this is the code:

    <FORM action="Forum/login.php" method="POST">
    <TABLE cellpadding="0" cellspacing="5" border="0">
    <TR>
    <TD><B>Username:</B></TD>
    <TD><INPUT type="text" name="username" maxlength="20"></TD>
    </TR>
    <TR>
    <TD><B>Password:</B></TD>
    <TD><INPUT type="password" name="password" maxlength="10"></TD>
    </TD>
    </TABLE>
    <div align="center"><input class="text" type="checkbox" name="autologin" />
    <INPUT type="hidden" name="fromar" value="true">

    <INPUT type="submit" value="Login">


    and when i try to login from main page it goes to my login page on forum and im not loged in..i cant login from main page

    can u help me

    if u need demo account please let me know

  • #2
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,746
    Thanks
    18
    Thanked 155 Times in 146 Posts
    please post the PHP code that processes your HTML form.....
    Regards, R.J.

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

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!

  • #3
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thats the problem i dont have one i only have this code on my page....

    can u tell me what code do i need

    tnx

  • #4
    Regular Coder
    Join Date
    Nov 2004
    Location
    The Netherlands
    Posts
    551
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It depends on the forum you use. What forum do you use?
    CATdude about IE6: "All your box-model are belong to us"

  • #5
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i use phpbb
    i have made my login form on my front page...when i try to login to forum from front page it shous me login page of the forum

    i have to login from there

  • #6
    New Coder
    Join Date
    Sep 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Replace this : <INPUT type="hidden" name="fromar" value="true">

    <INPUT type="submit" value="Login">

    With :

    <input type="hidden" name="redirect" value="" />

    <input type="submit" name="login" value="Log in" />

  • #7
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i tried this and still not workong

    it goes to login.php but it wont login from this form

    it says u have entered wrong username or password please try again

    can someone help me

    tnx

    this is the login form
    http://www.crofiat.com/Untitled-2.php

    and test account is

    demo / demo

    try it yourself
    Last edited by ljicpu; 09-16-2005 at 10:28 PM.

  • #8
    New Coder
    Join Date
    Sep 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    demo and demo aren't even working from the forums...I'd say it's REALLY the wrong password or username...

  • #9
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sorry i cretaed account accidently dmeo


    now i changed it

    it is demo / demo

    please check again

  • #10
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    it working now

    this was the problem

    i tried to enter the forum with my username "ljićpu"

    and on the main page it doesnt recognise this special character "ć"

    so i tried with this username and it workes "ljipu"

    sorry all for this

    p.s. how can i add to this form to accept this characher

  • #11
    New Coder
    Join Date
    Sep 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Maybe, in the PHP code, you could put use a str_replace() for the letter?

    I'm not sure if it'd work...and I don't know the variables by heart, but it'd be something like...

    $_POST['username'] = str_replace('ć', '', $_POST['username']);


  •  

    Posting Permissions

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