Jump to content

Hide Login Problems

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
alsonkimichi

alsonkimichi

    Newbie

  • Members
  • Pip
  • 2 posts
i having a hide login problem, when i sign in and click the button, how do i hide the the customer login which show on the attachment?? please help

the codes as follow
<h2>Customer Login</h2>

			<h2>%%GLOBAL_ExistingUserHeading%%</h2>

           

			<form action="%%GLOBAL_ShopPath%%/login.php?action=check_login" method="post" onsubmit="return check_login_form()">

				<div class="FormContainer HorizontalFormContainer NarrowFormContainer">

					<p style="display: %%GLOBAL_HideLoginMessage%%" class="%%GLOBAL_MessageClass%%">

						%%GLOBAL_LoginMessage%%

					</p>

						%%LNG_EmailAddress%%:

						<input type="text" class="Textbox Field150 InitialFocus" name="login_email" id="login_email" />

						%%LNG_Password%%:

						<input type="password" class="Textbox Field150" name="login_pass" id="login_pass" />					

					    <class="Submit">

						<input id="LoginButton" type="submit" value="%%LNG_LoginWord%%" style="padding:2px 10px 2px 10px" />

                        

						<a href="%%GLOBAL_ShopPath%%/login.php?action=reset_password" >%%LNG_ForgotYourPassword%%</a><br />

                        <a href="%%GLOBAL_ShopPath%%/login.php?action=create_account" >%%LNG_CreateAccount%%</a>

                        

Attached Files



#2
zeroradius

zeroradius

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,406 posts
use an if statement. I asume you are storing weather they are logged in in a session?

if(isset($_SESSION['user']))
{
   //code to be displayed if they are loged in
}
else
{
   //login code
}

Posted Image

#3
alsonkimichi

alsonkimichi

    Newbie

  • Members
  • Pip
  • 2 posts
where shold i insert the code???

thanks

#4
adm

adm

    Newbie

  • Members
  • Pip
  • 3 posts
where is your login.php codes.
how u re controlling your sessions or what u do for hiding your login panel.

#5
zeroradius

zeroradius

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,406 posts
use it werever it is you would usualy put your login code. And than your login code goes in the else statement.
Posted Image