SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    #1 $_GET example

    Example #1 $_GET example

    Code:
    <?php
    echo 'Hello ' . htmlspecialchars($_GET["name"]) . '!';
    ?>
    Assuming the user entered http://example.com/?name=Hannes

    The above example will output something similar to:

    Hello Hannes!

    but i want output like this
    http://example.com/Hannes

    any one can tell me

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    I am not sure, but I think you mean input like example.com/Hannes if so then you need to read about Apaches mod_rewrite

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i want to get this veriable dd= from my url

    http://domain.com/?dd=436436


    for here

    <iframe width="560" height="315" src="http://www.youtube.com/embed/oIowZiM41kQ" frameborder="0" allowfullscreen></iframe>

    it should be something like this
    ($_GET["dd"])

  4. #4
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    please help me for this

    i want to get this veriable dd= from my url

    http://domain.com/?dd=436436


    for here

    <iframe width="560" height="315" src="http://www.youtube.com/embed/oIowZiM41kQ" frameborder="0" allowfullscreen></iframe>

    it should be something like this
    ($_GET["dd"])

  5. #5
    SitePoint Wizard siteguru's Avatar
    Join Date
    Oct 2002
    Location
    Scotland
    Posts
    3,629
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    See your other thread.

    And maybe try reading a PHP tutorial? It looks to me you're trying to implement something that is far beyond your current knowledge and capabilities. A "hack n slash n patch together" approach to website building is NEVER a good idea.
    Ian Anderson
    www.siteguru.co.uk


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •