| View previous topic :: View next topic |
| Author |
Message |
ruben
Joined: 06 Nov 2010 Posts: 57
|
Posted: Nov 29, 2010 5:02 pm Post subject: Need help : Registration and login in same html file |
|
|
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. |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: Dec 02, 2010 10:50 am Post subject: |
|
|
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> |
|
| Back to top |
|
 |
|