• Archives

  • AddThis Social Bookmark Button

    Add to Technorati Favorites

  • Echoing the user input through php

    By krates | February 1, 2008

    Php is very powerful when it comes to handling of forms. It can check user input check for illegal characters and can also help in uploading of files. Which i am going to teach you in later chapters. But for today we are going to study how to how to echo user input.

    form.php

    <html>

    <head>

    </head>

    <body>

    <form action=”process.php” method=”get”>

    <input type=”text” name=”textfield” />

    </form>

    </body>

    </html>

    process.php

    <html>

    <head>

    </head>

    <body>

    <?php

    $something=”$_['textfield']“;

    echo $something;

    ?>

    </form>

    </body>

    </html>

    Thanks

    krates

    Share and Enjoy:
    • Digg
    • del.icio.us
    • Facebook
    • NewsVine
    • Reddit
    • StumbleUpon
    • YahooMyWeb
    • Google Bookmarks
    • Yahoo! Buzz
    • TwitThis
    • Live
    • LinkedIn
    • Pownce
    • MySpace

    Topics: PHP | No Comments »

    Related Links:

    Comments

    Security Code: