Outputting $_GET variables

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • pbmods
    replied
    Originally posted by bencohen
    thanks, so how do i print that information on screen to the user. I want to put it into a form
    Easiest way to do it:

    [code=html]
    <input type="text" name="query" value="<?php echo $_GET['query']; ?>" />
    [/code]

    Leave a comment:


  • bencohen
    replied
    thanks, so how do i print that information on screen to the user. I want to put it into a form

    Leave a comment:


  • pbmods
    replied
    Changed thread title to better match contents and to remove the annoying 'help' text (don't worry; we know why you're here).

    Heya, bencohen. Welcome to TSDN!

    You'll be wanting to use $_GET['query'].

    Leave a comment:


  • bencohen
    started a topic Outputting $_GET variables

    Outputting $_GET variables

    I'm having a complete block on something simple:

    User makes query i.e.
    script.php?quer y=one

    I want to use $query to the print "one"

    Cant remember how to do that
Working...