The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

redirect to /chatbox after login

View previous topic View next topic Go down

Solved redirect to /chatbox after login

Post by cupcup on 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"

cupcup
Forumember

Posts : 36
Reputation : 1
Language : english

Back to top Go down

Solved Re: redirect to /chatbox after login

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

Hello cupcup,

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

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: redirect to /chatbox after login

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

thanks

cupcup
Forumember

Posts : 36
Reputation : 1
Language : english

Back to top Go down

Solved Re: redirect to /chatbox after login

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

You're welcome ^^

Topic archived

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum