Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to use $_Get in php?

    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 127
    Comment on it

    PHP $_GET can also be used to collect form data after submitting an HTML form with method="get". $_GET can also collect data sent in the URL.

    You can see below example of $_Get in php.

    <!DOCTYPE html>
    <html>
    <body>
    
    Here you can see how define url and call test.php
    <a href="test.php?subject=Url&web=example.com">Get Link</a>
    
    </body>
    </html>
    

    Here you have to make a page name test.php

    <!DOCTYPE html>
    <html>
    <body>
    <?php 
    //here call $_GET method for getting result
    echo "Your " . $_GET['subject'] . " is " . $_GET['web'];
    
    ?>
    </body>
    </html>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: