Skip to content
  • Home
  • About Puneet Pandey
  • Travel, Living & Lifestyle
  • Stackoverflow
  • Github

PUNEET PANDEY's WEBLOG

Where perfection meets intelligence

validates username and password

Create a Login Script

January 24, 2008Puneet PandeyLeave a comment

Hello Guys, Here I m Writing A Simple Login Script for a User…

<HTML>

<HEAD> LOGIN SCRIPT

<SCRIPT LANGUAGE=”JavaScript”>

function animate()
{
window.document.title=textDisplay[y].substr(0, x)+””;
if (z==0) x–;
if (z==1) x++;
if (x==-1) {z=1;x=0;y++;y=y%textCount;}
if (x==textDisplay[y].length+10) {z=0;x=textDisplay[y].length;}
parent.window.document.title=textDisplay[y].substr(0, x)+””;
setTimeout(“animate()”,75);
}

</SCRIPT>
</HEAD>

<BODY onLoad=”animate();>

<form name=”login” action=”validate.php” method=”post”>

<table cellpadding=”4″>

<tr>
<td><font face=”verdana” size=”2″>Username :</font></td>
<td><input type=”text” name=”username” size=”20″ maxlength=”25″ tabindex=”1″><br></td>
</tr>
<tr>
<td><font face=”verdana” size=”2″>Password :</font> </td>
<td><input type=”password” name=”password” size=”20″ maxlength=”25″ tabindex=”2″></td>
</tr>
</table>
<br>
<center><input type=”submit” name=”submit” value=”SUBMIT”></center>
</form>
</BODY>

</HTML>

Guys What I do is I have Written the code of simple php login script. here the Cursor will be shown on the Username Default, for that I have written a animate() javascript.

I hope you all are familiar with this, Next I will Validate the Username and Password with the database and redirects the user to its home page.

Advertisement

Share this:

  • Click to email a link to a friend (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to print (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Skype (Opens in new window)

Like this:

Like Loading...
PHPcreate a login page in PHP, Login script, PHP login script, simple login page, validates username and password

Enter Keyword

Recent Posts

  • Connect to Box Explorer Component using Ruby on Rails
  • How to keep multiple versions of Elasticsearch on MacOS
  • [Rails 6] Using bootstrap with Asset Pipeline or Webpacker
  • Requests that take more than 60s to complete fails – ElasticBeanstalk
  • Configure Delayed Job with Elastic Beanstalk

Top Posts

  • [Ruby] Fetching Emails from Microsoft Outlook
  • [Ruby]: Update hash values with Array
  • Configure Delayed Job with Elastic Beanstalk

Recent Comments

Snehanshu Phukon on How to keep multiple versions…
Surendra on [Ruby] Fetching Emails from Mi…
bhagath on Fetch contacts from Facebook u…
Ashwin on [Ruby] Fetching Emails from Mi…
Puneet Pandey on [Ruby] Fetching Emails from Mi…

Blog Stats

  • 129,168 hits

I’m on Twitter

  • We are the nation of 139 crore and yet to find the best 11 jisko face karne mai opponents ka mutt nikal jaye.… twitter.com/i/web/status/1… 2 months ago
  • What is the maximum cashback you have received on CRED when you pay via CRED on partner's websites/apps (for exampl… twitter.com/i/web/status/1… 5 months ago
  • Dear #CRED you should change upto Rs 100 cashback to upto Rs 20 cashback on your partner sites. 18Rs is the max I’v… twitter.com/i/web/status/1… 5 months ago
  • @paytmbankcare All the nearby KYC centres are non operational. This list is false and misleading 8 months ago
  • It was a catch practice day for #TeamNewZealand and our boys did a great job in that #TeamIndia 1 year ago

I’m on Facebook

Puneet Pandey's Profile
Puneet Pandey's Facebook profile
Create Your Badge

Puneet on Linkedin

View Puneet Pandey's profile on LinkedIn

Archives

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 1,628 other subscribers

Pages

  • About Puneet Pandey
  • Ruby on Rails, iOS & PHP
  • Travel, Living & Lifestyle

Gravatar Profile

Puneet Pandey

Puneet Pandey

Name : Puneet Pandey Designation : Engineer, Blogger, Freelancer, Content Writer Height : 5 feet 11 inches Weight : 95 kgs Blood Group : A+ Career Interests : Ruby on Rails, Photography, Singing, Cooking, Travelling

Personal Links

  • A Weblog for All RoR Developers
  • Ruby on Rails Delivery Expert Blog
  • GitHub Profile

View Full Profile →

Find my Posts with these Tags

Ajax on Rails Auto Complete a simple example how to create scaffold on rails assign user a session basic scaffolding example create a login page in PHP Elastic Beanstalk How to create scaffold in rails how to send tweets from rails application how to validate a username and password in php Login script PHP login script php script to validate username and password pik rails Rails 3 Rails4 rails for beginners rails scaffold rails tweet ruby Ruby 1.9.2 Ruby on Rails ruby on rails auto select ruby on rails scaffold Ruby on Rails with Ajax Auto Select simple login page simple php user validation script twitter4r validates username and password validate user in php
Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • PUNEET PANDEY's WEBLOG
    • Join 1,536 other followers
    • Already have a WordPress.com account? Log in now.
    • PUNEET PANDEY's WEBLOG
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
%d bloggers like this: