1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Development Forum login code

Discussion in 'Software' started by cfuk, 12 Apr 2005.

  1. cfuk

    cfuk What's a Dremel?

    Joined:
    9 Jul 2004
    Posts:
    711
    Likes Received:
    0
    I want to put a login block for my forum on the main page. I have put all the fields and buttons on the page, but i don't know what code i need to use. Can you please help

    Thanks :)

    p.s. i'm using phpbb
     
  2. Atomic

    Atomic Gerwaff

    Joined:
    6 May 2002
    Posts:
    9,646
    Likes Received:
    94
    surely you could just look at the login template and pilfer the code from there?
     
  3. Ben

    Ben What's a Dremel?

    Joined:
    11 Aug 2003
    Posts:
    1,000
    Likes Received:
    0
    Code:
    <form action="/forum/login.php" method="post" name="loginForm" >
    Username ::
    <br />
    <input type="text" class="post" name="username" size="12" maxlength="12" value="" />
    <br />
    Password ::
    <br />
    <input type="password" class="post" name="password" size="12" maxlength="12" /><input type="hidden" name="redirect" value="" />
    <br />
    <input type="submit" name="login" class="mainoption" value="Log in" />
    </form>
    action="/forum/login.php" == the wherever the login file is for you

    *should work*
     

Share This Page