Jump to content

Recommended Posts

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
https://metin2.dev/topic/14188-php-problems/
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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
https://metin2.dev/topic/14188-php-problems/#findComment-80402
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

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.