need guidance on simple PHP admin login and re-direct
Posted: Thu Nov 20, 2008 9:10 pm
Basically I need help with creating the php and a simple change password script that will keep the data encrypted ( username / password ).
This is for the admin panel side of the site and it really only needs one username and the ability to set a different password as well.
As for the form itself it will look something like this ..
A little info on my experience with PHP.
I bought a book that integrates a foundation for learning PHP, MySQL and Apache. I have read through most of the PHP parts and its really just fundamental programming concepts I already know with different syntax. Variables, functions, data types, classes etc etc. But as far as implementing the PHP and getting data I have had to simply look online for.
So heres where I'm hoping for some expert help. Thanks - xplore1
This is for the admin panel side of the site and it really only needs one username and the ability to set a different password as well.
As for the form itself it will look something like this ..
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" method="post" action="checklogin.php">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="3"><strong>Member Login </strong></td>
</tr>
<tr>
<td width="78">Username</td>
<td width="6">:</td>
<td width="294"><input name="myusername" type="text" id="myusername"></td>
</tr>
<tr>
<td>Password</td>
<td>:</td>
<td><input name="mypassword" type="text" id="mypassword"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input type="submit" name="Submit" value="Login"></td>
</tr>
</table>
</td>
</form>
</tr>
</table>
</body>
</html>
A little info on my experience with PHP.
I bought a book that integrates a foundation for learning PHP, MySQL and Apache. I have read through most of the PHP parts and its really just fundamental programming concepts I already know with different syntax. Variables, functions, data types, classes etc etc. But as far as implementing the PHP and getting data I have had to simply look online for.
So heres where I'm hoping for some expert help. Thanks - xplore1