Tuesday, 27 December 2011

PHP part 2..

we will continue our lesson on PHP..

10) PHP switch statement.

use PHP switch statement to select one of many blocks of code to be executed.

11) PHP arrays.


12) PHP loops.

The foreach loop is used to loop through arrays.


13) PHP function.

14) $_GET variable.

When using method="get" in HTML forms, all variable names and values are displayed in the URL.
This method should not be used when sending passwords or other sensitive information. Information sent from a form with the GET method is visible to everyone and has limits on the amount of information to send.



15) $_POST variable.

Information sent from a form with the POST method is invisible to others and has no limits on the amount of information to send.





thats all for today. see you in next topic ! :))

PHP part 1..

PHP = Hypertext PreProcessor..

PHP is a server side scripting language. PHP scripts are executed on the server. Source code is not visible by clients. 

How to run PHP scripts?

1) Basic PHP syntax

Notes = There are 2 basic statements to output text : echo and print..


2) PHP comments.


3) PHP variables.

- Variables must be declared and are used for storing values like strings, number or arrays.
- All variables start with $ sign.
BASIC

EXAMPLE

4) PHP string variable.


5) The concatenation operator.


6) The strlen() function.

7) If statement.

8) If ... else statement.


9) if.. else if... else statement.


There's a lot more to learn. see u next time !

to be continued......

Tuesday, 20 December 2011

DOM..

Assalamualaikum. today we will learn about " DOM "..

DOM = Document Object Model

"The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document."










EXAMPLES !






Scroll down to see half of its page source :)



that's all for today.. see u in the next topic ! (: