Jump to content
×
×
  • Create New...
  • 0

php problems


Clawders

Question

Hello, I started to encode a new website, I'm not very good at php, everything works perfectly, but the function login does not work, place the right data logging, I login and tells me that logging failed, login function is the following.

      <!-- login start -->

        <div id="ack"></div> 
		<div id='login'>
			<div id='auth'>
		<?php if(!isset($_SESSION['user']) && !isset($_SESSION['pass'])){ login();?>

             <form id="myForm" action="index.php" method="POST" style="margin-left:-0px; margin-top:-0px;">
			<input type="text" id="input_id" name="userid" onfocus="if(this.value=='Login')this.value=''" onblur="if(this.value=='')this.value='Login'" value="Login">
				<input type="password" id="input_pw" name="userpass" onfocus="if(this.value=='Password')this.value=''" onblur="if(this.value=='')this.value='Password'" value="Password">
				<input type="submit" id="button_login" name="submit">

                 </form>

				 </div>
				 </div>

                    		

               <?php } else{ ?> 

        	<?php if($_SESSION['admin'] > 0){?> <a HREF="index.php?page=panou-admin">&raquo; Administrare</a><br> <?php } ?>

		<a href='index.php?page=panou-user'>&raquo; <?=userpp?></a><br>
<a HREF="index.php?page=caractere">&raquo; Caractere</a><br>
<a HREF="index.php?page=schimbare-email">&raquo; Schimba email</a><br>
<a HREF="index.php?page=parola-depozit">&raquo; Parola depozit</a><br>
<a HREF="index.php?page=schimbare-pw">&raquo; Schimba parola</a><br>
<a HREF="index.php?page=cod-stergere">&raquo; Cod siguranta</a>
       <br> <a href='index.php?page=iesire'>&raquo; <?=logoutz?></a>

<?php } ?>

        <!-- login end --> 

 

Link to comment
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

2 answers to this question

Recommended Posts

  • 0
40 minutes ago, Optimus said:
action="index.php"

here, you need add page login like: index.php?page=login

 I tried with iindex.php?page=login sign, too, failed login, you can do me login.php files you do not know how it would be done anyway thanks. scripts are made of darkdev

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.