A
Anonymous
Guest
Hello Mr. Pejone and all of members
Can you advice me how to:-
1. Asking guest to register->become a member of site. For example this forum
2. using Mysql to store database:USERNAME and PASSWORD. only username registered can access relevant data (i.e portal)
-different user , different data. With my experience i use this code to ASKING user to input USERNAME and PASSWORD and then SUBMIT -process with another file
1. passwordLecturer.php---> for asking user to input username & password
and then this is
2.kataLecturer.php---> to process username and password
If i want to add another password i have a problem. I need that username & password can be stored in Mysql and then using PHP , i can retreive.
--------------------------------------
Thanks. Happy New Year for happy live
SELAMAT TAHUN BARU 2003
Can you advice me how to:-
1. Asking guest to register->become a member of site. For example this forum
2. using Mysql to store database:USERNAME and PASSWORD. only username registered can access relevant data (i.e portal)
-different user , different data. With my experience i use this code to ASKING user to input USERNAME and PASSWORD and then SUBMIT -process with another file
1. passwordLecturer.php---> for asking user to input username & password
Code:
<? php
include("header1.php");
print("You're using ");
print($HTTP_USER_AGENT);
print(" to see this page.<BR>\n");
print("please enter your PASSWORD");
?>
<form method="POST" action="kataLecturer.php">
<div align="left"><p><font face="BankGothic Md BT">
Admin name?</font>
<input type="text" name="name" size="14">
Admin password?</font>
<input type="password" name="pw1" size="15"><br><input type="submit" value="submit"></p>
</div></form>
and then this is
2.kataLecturer.php---> to process username and password
Code:
<?php
$adminname="azman";
$adminpass = "1234";
if ($pw1 == $adminpass)
if($name ==$adminname)
{
// print("WELCOME TO ADMINISTRATION PAGE");
echo("<BR>");
include("lecturerpages.php");
}
else
{
print("Wrong password");
}
?>
If i want to add another password i have a problem. I need that username & password can be stored in Mysql and then using PHP , i can retreive.
--------------------------------------
Thanks. Happy New Year for happy live
SELAMAT TAHUN BARU 2003