• Archives

  • AddThis Social Bookmark Button

    Add to Technorati Favorites

  • Calling the script running on your computer

    By krates | November 3, 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

    $PHP_SELF

    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”>

    Example

    </html>

    Type the above to see the result
    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: