Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
0Activity
0 of .
Results for:
No results containing your search query
P. 1
The Login Form

The Login Form

Ratings: (0)|Views: 5|Likes:
Published by Kingsley Adjei
login form
login form

More info:

Published by: Kingsley Adjei on Aug 15, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

08/15/2012

pdf

text

original

 
The login form
Here is the HTML code for the login form.
<form
 
id='login'
 
action='login.php'
 
method='post'
 
accept-charset='UTF-8'>
 
<fieldset
 
>
 
<legend>Login</legend>
 
<input
 
type='hidden'
 
name='submitted'
 
id='submitted'
 
value='1'/>
 
<label
 
for='username'
 
>UserName*:</label>
 
<input
 
type='text'
 
name='username'
 
id='username'
 
maxlength="50"
 
/>
 
<label
 
for='password'
 
>Password*:</label>
 
<input
 
type='password'
 
name='password'
 
id='password'
 
maxlength="50"
 
/>
 
<input
 
type='submit'
 
name='Submit'
 
value='Submit'
 
/>
 
</fieldset>
 
</form>
 
Logging in
We verify the username and the password we received and then look up those in the database.Here is the code:
function
 
Login()
 
{
 
if(empty($_POST['username']))
 
{
 
$this->HandleError("UserName is empty!");
 
return
 
false;
 
}
 
if(empty($_POST['password']))
 
{
 
$this->HandleError("Password is empty!");
 

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->