XFileSharing Pro - Need help : Registration and login in same html file

Message
Author
ruben
Posts: 57
Joined: Nov 06, 2010 2:22 pm

Need help : Registration and login in same html file

#1 Postby ruben » Nov 29, 2010 5:02 pm

Hello,

I have a temp for login, registration and forgot pass in one.

http://img138.imageshack.us/img138/646/tempu.png


My question is how to seperate each form? because this makes the error when i only use the one for login I only can login and not register etc. and I need this in the same html file. so is there anything that helps ?

for login :

<form method="POST" action="<TMPL_VAR site_url>/" name="FL">
<input type="hidden" name="op" value="login">
<input type="hidden" name="redirect" value="<TMPL_VAR redirect>">

for registration :

<Form method="POST" onSubmit="return CheckForm(this)">
<input type="hidden" name="op" value="register_save">
<input type="hidden" name="rand" value="<TMPL_VAR rand>">



and one more question how to change the visiblity of the lines.

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Dec 02, 2010 10:50 am

Just don't forget to close FORM tag.

<form method="POST" action="<TMPL_VAR site_url>/" name="FL">
<input type="hidden" name="op" value="login">
<input type="hidden" name="redirect" value="<TMPL_VAR redirect>">
......
</form>