Skip to content
WJunction - Webmaster Forum

Html Login Member Script

Status
Not open for further replies.

yuvraj

Established Member
183
2011
26
Hi Guys
if any one have Html member page javascript
please give me as link or p.m
i dont need any database
just one member can login with given username and password
if possible thank you
 

3 comments

You cannot create a log in system with HTML you need to combine both HTML and PHP together I suggest checking a website like:

Code:
www.nets.tutsplus.com
 
its, easy if you can just write it your self

logic:
- username should be in your table
- password should match

to give basic knowledge, we can do much like checking privileges and all
PHP:
$username = $_REQUEST['your_text_field_name_here'];
$password = $_REQUEST['your_pass_field_name_here'];
$query = mysql_query('SELECT user_name,pass_word FROM YOUR_TABLE WHERE user_name = $username AND password=$password ')


to login

PHP:
if ($_POST[ $username])
{
 if ($_POST[$password])
 {
 if( $username = user_name && $password= pass_word )
{
 echo "login success";
}
else
{
 echo "login failed";
}

else
{
 echo "you must enter  password";
}
}
else
{
echo "login Failed error";
}
 
Last edited:
Status
Not open for further replies.

About the author

Y
Established Member · Joined
183
Messages
26
Reactions
28
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom