• Archives

  • Calling the script running on your computer

    By admin | 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

    Topics: PHP | Comments Off on Calling the script running on your computer

    Related Links: