How to call things from url to page?

Discussion in 'Programming' started by Ninjasoft, Jun 9, 2008.

  1. #1
    Ninjasoft, Jun 9, 2008 IP
  2. mehmetm

    mehmetm Well-Known Member

    Messages:
    134
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #2
    echo 'Hello ' .$_GET['name']. '?';

    regards.
     
    mehmetm, Jun 9, 2008 IP
    Ninjasoft likes this.
  3. Ninjasoft

    Ninjasoft Peon

    Messages:
    338
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thank you :D
     
    Ninjasoft, Jun 9, 2008 IP
  4. algaidaman

    algaidaman Active Member

    Messages:
    106
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #4
    FYI if you need to use the name in several locations (or if you use a number at some point for calculations), you can declare it as a variable then echo out the variable instead of calling _GET all the time:

    
    $var1 = $_GET['name'];
    echo 'Hello $var1';
    
    
    Code (markup):
     
    algaidaman, Jun 10, 2008 IP