Skip to content

Puneet Pandey's Weblog

Where Perfection meets Intelligence

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

Tag: PHP login script

Create a Login Script

On January 24, 2008 By Puneet PandeyIn PHPLeave 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.

Advertisements

Share this:

  • Click to email this 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 Google+ (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...

Enter Keyword

Recent Posts

  • Configure Delayed Job with Elastic Beanstalk
  • [Ruby]: Update hash values with Array
  • Learning RSPEC with Rails 4 (Alpha)
  • [Ruby] Fetching Emails from Microsoft Outlook
  • Rails 4: Changeset

Top Posts

  • Generate XML with Rails
  • Learn Core Ruby Concepts
  • [Ruby] Fetching Emails from Microsoft Outlook
  • Configure Delayed Job with Elastic Beanstalk

Recent Comments

Ashwin on [Ruby] Fetching Emails from Mi…
Puneet Pandey on [Ruby] Fetching Emails from Mi…
Anish on [Ruby] Fetching Emails from Mi…
Anish on [Ruby] Fetching Emails from Mi…
Anish on [Ruby] Fetching Emails from Mi…

Blog Stats

  • 121,733 hits

I’m on Twitter

  • Dear @github, please add #India into SMS deliverability list. #Unable to add #fallbackSMSNumber #2FactorAuth #Request 3 months ago
  • Kabhi-2 sochta hu ki life mai sabse zayada important kya hai? #Power ya #Paisa. Dono to naseeb walo ko milte hai! 3 months ago
  • We'd decided to ban #PakistaniSingers few months back and now they are singing again for #IndianFilms! #Bollywood k… twitter.com/i/web/status/1… 4 months ago
  • #Android over #iOS, #Windows over #Mac, #Bixby over #Siri, #AndroidPhone over #iPhone, debate is endless but I do see limitations of #Apple 9 months ago
  • Ye #Airtel4G ki ladki n #Trivago ka ladka, no matter how hard you try to ignore them, atlast inki shakal dekhni hi… twitter.com/i/web/status/9… 10 months 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 2,033 other followers

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 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 How to create scaffold in rails How to select College According to City and city accord 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
Advertisements
Blog at WordPress.com.
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.
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
%d bloggers like this: