redirect to /chatbox after login Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
2 posters

    redirect to /chatbox after login

    avatar
    cupcup
    Forumember


    Posts : 36
    Reputation : 1
    Language : english

    Solved redirect to /chatbox after login

    Post by cupcup November 27th 2014, 4:52 pm

    Hello, i have make page html, then if user login using my page, it will redirect to chatbox
    using form below
    Code:
    <div class="form-login">
                      <form action='/login' id='qstring' name="form_login" method='post'>
                         <div class="input-email">
                            <input id="ips_username" type="text" class="input_text" name="username" size="15" tabindex="1">
                            <span class="add-icon-email"><img src="http://i57.servimg.com/u/f57/17/68/86/50/user1010.png"></span>
                         </div>
                         <div class="input-password">
                             <input id="ips_password" type="password" class="input_text" name="password" width="" size="15" tabindex="2" style="display: inline-block; float: left; width: 268px; padding: 15px 8px;">
                            <span class="add-icon-locked"><img src="http://i57.servimg.com/u/f57/17/68/86/50/key1010.png"></span>
                         </div>
                         <input type="submit" name="login" class="input_submit" value="Sign in">
                      </form>
                   </div>
    on action='/login' if i change using action='/chatbox' but doesn't work, on chatbox page say "you must be login first"
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: redirect to /chatbox after login

    Post by Ange Tuteur November 27th 2014, 5:25 pm

    Hello cupcup,

    Add this into your form :
    Code:
    <input name="redirect" value="/chatbox" type="hidden"/>
    avatar
    cupcup
    Forumember


    Posts : 36
    Reputation : 1
    Language : english

    Solved Re: redirect to /chatbox after login

    Post by cupcup November 27th 2014, 9:12 pm

    thanks
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: redirect to /chatbox after login

    Post by Ange Tuteur November 27th 2014, 9:57 pm

    You're welcome ^^

    Topic archived