NOKIA

pages of blog

Tuesday 24 June 2014

cour 3 : what is the action of our login form ? (PHP)

hello .
in cour 1 and 2 , we create a login form by HTML and CSS 
in this cour we ask this question :

what is the action of our login form ? what is the Interest ? 

ok , in this point , we need a edia befour starting . 
1-the user enter a username and password 
2-i say that only if user enter (username="admin" and password="admin")  . he can sees "hello" at Level of our page exemple.php . else he sees "error".

ok , its simple , What do you think that we are testing
  
open your file (exemple.php) and add this code PHP : 
  




you can learn about PHP from all of PHP
we define 2 variables , $username and $password  
$username give its value from $_POST['name'] ( value of input of name='name') by the method POST . 
the $_POST is Matrix help us to give the values of different  input as last input and the input of password .
$password , The same thing ,but it give his value from $_POST['password'] (the second input) 

ok , if the value of $username='admin' and $password='admin' then show (in php echo "") hello
else show error.

so , i say that we need a data base , no only (admin)  can see "hello" 
all users can see this , but if they are registered at data base . 

in the next cour , we use to create a data base , and we know what is SQL , and how to use it . 

i hope that the cour is simple and easy , try to get the correct result .

reminder : 
Do not forget, that you move your 2 files (exemple.php and style.css )  to directory    (c:\appserv\www\) 
if you want to try your page at Browser , write at adress ( localhost/exemple.php) 

ok . that's all 







thank you . 
yassine  
 

cour 2 : how to set propriety of login form ( CSS)

html     is the language of creation elements , like the element that we creat in last cour

and css (cascading style sheets) , help to set propriety of elements , like : height , width , background ...... 
and in this cour we need to know how to creat a simple code befour help us to set  decoration of our login form .

this code bellow , is of possitioning . and the color of login-form background

  

follow me : 
1- open bloc not and save the file by (style.css) and write the last code 
2- you need to open our file of last cour (exemple.php) and adding the code : 
<link rel="stylesheet" type="text/css" href="style.css">
why this code ?

for define the styling of our login form , this styling in file style.css (href="style.css") 

you need to learn CSS , its simple and easy from all of css  

we define that the position is absolute , for set the value of top and left , its the Place is what counts
and we define the color of login form background .
ok its easy .... 

so try it ... 

 if you try it and the result is showing as bellow , then you are the best  . hahahaha 


Lesson ended , i hope that my explain is simple . in the next cour we know how to set an action of login form by PHP . 
thank you 

yassine.

  
 

Monday 23 June 2014

cour 1 : how to write scripte of login

hello 
if you are tyro in PHP , i will present the simple scripte for programming login page 



first step : You must learn HTML because you know what i write . ok

for create a form of login . open bloc not or other  editor , and save a file by name : exemple.php
Reminder that you need to download and anstall the compiler of PHP language , its simple and easy for all programmers .from     http://www.appservnetwork.com

ok . we start after you create new file by name : exemple.php 
this code of login form 



the form login in html ,
Contains the begin and the end .ok 

the begin is : 
<form>
and the end is 
</form>
the begin must have an action . ok what is the action

the action is the  Property, which must be equal to the value of the page to send data supplied 
by our login form , like name and password . we use the next page is The same page .ok
the method is 2 
POST and GET 
we prefer POST because we are tyro 
it is the method used befor send data .ok


Between the begin and the end , we must define the INPUT ... 

input of name 
input of password 
input of buttom 

in all input we must define propriety 
name of input -
type of input 
value of input 
hahahah its simple 
in type of input . we choose for the one : text , because its visuel 
the type password is not visuel .

last type of input , for the buttom , so if you need a buttom , its simple and easy 

type ="sumbit "
the result.








thank you befor follow , and this is all

in next cour we set a decoration of our login form by CSS

thank you

yassine
 





Tuesday 17 June 2014

hello , introduction

here , in this post we start the idea
 ....


the blog is bassed at methodes that can give solutions of Several problems 
by language PHP 
if you like PHP , and if you with us . then enjoy .
this blog is the best way to you



.