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 ! (:



Friday 11 November 2011

JAVA SCRIPT

Assalamualaikum. today we will learn about Java script..


Example 1:

[CODE]

[POP UP]


Example 2:

[CODE]


[POP UP]




[PREVIEW IN CHROME]


Saturday 22 October 2011

lets learn about CSS !

Assalamualaikum. today's entry is about CSS.

What is CSS?

CSS = Cascading Style Sheets

Example:

1) CSS background 

- background-color
- background-image
- background-repeating
- background-position



2) CSS float

-an element can be pushed to the left or right, allowing other elements to wrap around it.


Monday 17 October 2011

HTML..

Assalamualaikum. Today we are going to learn about HTML. What is HTML? HTML is Hypertext Markup Language. We are going to see the examples that might make us easy to understand about this topic.

1) HTML headings.
- HTML headings are defined with the <h1> to <h6> tags.




2) HTML paragraphs.
HTML paragraphs are defined with the <p> tag.




- </br> tag is use to separate lines.


3) HTML links.
- HTML links are defined with the <a> tag.


4) HTML images.
-HTML images are defined with the <img> tag.


The URL points to the location where the image is stored. It define with <src> tag. 
  The <alt> tag specifies an alternate text for the image if the image cannot be displayed. 
  The height and width are used to specify the height and width of an image.

5) HTML text formatting.
- There are many tags that use to define certain description.


- example is as follow:
6) HTML tables.
- There are many tags that use to define certain description.

- This is an example showing that cell spans two columns. 

- This is an example showing that cell spans two rows.


- This is an example showing cell padding.
- This is an example showing cell spacing.

7) HTML Lists.
- table below shows HTML list tags.

- This is an example of unordered and ordered lists.
-This is an example showing nested lists.



That's all for today. Next entry is about CSS. see yea! :)