PHP for Begineers

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    2 Favorites & 1 Group

    PHP for Begineers - Presentation Transcript

    1. BY KANIKA SINGHAL 3 RD YEAR COMPUTER ENGINEERING College of Technology, GBPUA&T 06/07/09 03:13 PM
      • What is PHP
      • Basics of PHP
      • Writing simple programs in PHP
      • Why use PHP
      • More on PHP programming
      • Retrieving data from the client
      • Designing forms
      06/07/09 03:13 PM
    2. 06/07/09 03:13 PM
    3. 06/07/09 03:13 PM
    4. 06/07/09 03:13 PM
      • Hands on experience………
      06/07/09 03:13 PM
      • BASIC CODE IN TEXT EDITOR
      • HOW IT LOOKS ON WEB BROWSER
      06/07/09 03:13 PM Example 1
    5. 06/07/09 03:13 PM
    6. 06/07/09 03:13 PM Web server locates instructions file Web server processes instructions to create HTML HTML stream returned to browser Browser processes HTML and displays page Client requests webpage Author writes instructions Delivering a web page 1 6 4 3 2 5
    7. 06/07/09 03:13 PM
    8. 06/07/09 03:13 PM
    9. 06/07/09 03:13 PM
      • BASIC CODE IN TEXT EDITOR
      • HOW IT LOOKS ON WEB BROWSER
      06/07/09 03:13 PM Revision Example 1
    10. 06/07/09 03:13 PM
      • BASIC CODE IN TEXT EDITOR
      • <?php
      • $my_name = “kanika”;
      • $My_name = “KANIKA”;
      • echo “hello, $my_name”;
      • echo “hello, $My_name”;
      • ?>
      • Variable.php
      • HOW IT LOOKS ON WEB BROWSER
      06/07/09 03:13 PM Example 2
      • string (text) example, $name=“kanika”
      • integer (numeric) example, $value=100
      • double (numeric)
      • Array
      • Object
      • unknown type
      06/07/09 03:13 PM
      • BASIC CODE IN TEXT EDITOR
      • <?php
      • $years=2;
      • $rate=5;
      • $principal=1000;
      • $simple_interest= $years * $rate
      • * $principal ;
      • echo &quot;<h2>Simple Interest is Rs.
      • $simple_interest/-</h2>&quot;;
      • ?>
      • simple_interest.php
      • HOW IT LOOKS ON WEB BROWSER
      06/07/09 03:13 PM Example 3
    11. 06/07/09 03:13 PM <FORM> … </FORM>
      • Text fields <input name=“textbox_name” type=“text”>
      • Checkboxes <input name=“checkbox_name” type=“checkbox” value=“”>
      • Radio buttons <input name=“radio_name” type=“text” value=“”>
      • Listboxes <select name=“listbox_name[]” multiple>
      • <option>option1</option>
      • </select>
      • Passwords <input name=“textbox_name” type=“password”>
      • Submit and Reset buttons
      • <input name=“textbox_name” type=“text”>
      06/07/09 03:13 PM
    12. 06/07/09 03:13 PM
      • ACTION-tells the server which page to go to once the user has clicked a submit button on the form.
      • <FORM ACTION=&quot;test.php&quot;>
      • ...
      • </FORM>
      • METHOD-controls the way that information is sent to the server. It can do this in one of two ways-GET and POST
      • <FORM ACTION=&quot;test.php&quot; METHOD=GET>
      • <FORM ACTION=&quot;test.php&quot; METHOD=POST>
      • ID, CLASS, DIR,LANGUAGE, NAME, STYLE, and TITLE
      06/07/09 03:13 PM
    13. 06/07/09 03:13 PM
    14. 06/07/09 03:13 PM
      • BASIC CODE IN TEXT EDITOR
      • <HTML>
      • <head><title>
      • Form page
      • </title></head>
      • <body>
      • <FORM METHOD=GET ACTION=“name.php&quot;>
      • What is your name ?
      • <INPUT NAME=“user” TYPE=&quot;TEXT&quot;>
      • <BR>
      • <BR>
      • <INPUT TYPE=SUBMIT>
      • </FORM>
      • </body>
      • </HTML>
      • Form_GET.php
      • HOW IT LOOKS ON WEB BROWSER
      06/07/09 03:13 PM Example 4(Using GET method)
      • BASIC CODE IN TEXT EDITOR
      • <HTML>
      • <HEAD></HEAD>
      • <BODY>
      • YOUR NAME IS :
      • <?php
      • echo $user;
      • ?>
      • </BODY>
      • </HTML>
      • name.php
      • HOW IT LOOKS ON WEB BROWSER
      06/07/09 03:13 PM Example 4 continued….
      • BASIC CODE IN TEXT EDITOR
      • <HTML>
      • <head><title>
      • Form page
      • </title></head>
      • <body>
      • <FORM METHOD=POST ACTION=“name.php&quot;>
      • What is your name ?
      • <INPUT NAME=“user” TYPE=&quot;TEXT&quot;>
      • <BR>
      • <BR>
      • <INPUT TYPE=SUBMIT>
      • </FORM>
      • </body>
      • </HTML>
      • Form_GET.php
      • HOW IT LOOKS ON WEB BROWSER
      06/07/09 03:13 PM Example 5(Using POST method)
      • BASIC CODE IN TEXT EDITOR
      • <HTML>
      • <HEAD></HEAD>
      • <BODY>
      • YOUR NAME IS :
      • <?php
      • echo $user;
      • ?>
      • </BODY>
      • </HTML>
      • name.php
      • HOW IT LOOKS ON WEB BROWSER
      06/07/09 03:13 PM Example 5 continued….
    15. 06/07/09 03:13 PM
    16. 06/07/09 03:13 PM THE END
    SlideShare Zeitgeist 2009

    + Manish KutaulaManish Kutaula Nominate

    custom

    574 views, 2 favs, 0 embeds more stats

    This talk was given by Kanika at OSScamp Pantnagar. more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 574
      • 574 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 2
    • Downloads 18
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Groups / Events