• Archives

  • Archive for the ‘PHP’ Category

    For loop in php

    Thursday, November 29th, 2007

    Think of a bucket of water which is heated at 100 degree centigrate in

    Once started getting heated it will store the heat and take more to raise the temp.

    Similarly the loops works

    for example:





    echo “www.easytutorial.com is great”;





    Variables in php

    Wednesday, November 28th, 2007

    What does php stands for ??

    PHP = presyntax hyper processor

    so the string presyntax hyper processor is stored in the varible PHP

    In php you can also store big calculations or strings or anything in a variable

    In php variable prefix is $

    so a simple variable program will look like this


    $easy = “http://www.easytutorial.info”;
    echo ‘For web designing tutorial go to <a href=”‘.$easy.'”>Easy tutorials’;




    Calling the script running on your computer

    Saturday, November 3rd, 2007

    Sometimes in form you need to call the web page or script currently running on your computer for it what will use in the form action thing you will use


    This variable analyze the script running and print it on the form action field

    Using it

    hmm to use it you have to write

    <form action=”<?php print $PHP_SELF?>” method=”POST”>
    Type your guess here: <input type=”text” name=”guess”>



    Type the above to see the result