Raised This Month: $ Target: $400
 0% 

[PHP] Login Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 10-08-2010 , 22:42   Re: [PHP] Login Help
Reply With Quote #11

Quote:
Originally Posted by platzpatrone View Post
PHP Code:
<?php 
$User 
"Shuttle_Wave"
$Pass "test"

if(isset(
$_POST["username"]) && isset($_POST["password"]))  
{  
    if(
$_POST["username"] == $User && $_POST["password"] == $Pass)  
    {  
        
session_register("username"); 
        
session_register("password"); 
        
header("location:system.php"); 
    }  
    else  
    {  
        
$errormsg "Incorrect Username or Password";  
    }  
}  
include(
"header.php");
 
?> 
 <body>
<center> 

<h1>Admin Login Panel</h1> 

<?php if(!empty($errormsg)) echo $errormsg?>

<form action='#' method='post'> 

Username: <input type="text" name="username" id="username" /> 
Password: <input type="password" name="password" id="password" /> 
<input type="submit" name="Submit" value="Login" /></form> 

</center> 

</body> 
</html>
ty vm. works like a charm
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode