Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jan 2004
    Posts
    245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    code inspecting ($_GET)

    Hi,

    Before you read the question, I know that it's something very, very, simple and stupid.

    I have a textfield that i want its value to use the $_GET .

    I have a text thats links to this.....page.php?type=feedback

    and this is what my textfield looks like

    PHP Code:

    <input name="type" type="text" class="textfield" id="type" value="<?php $_GET['type'?>">
    so basically, the value for the textfield should be "feedback"
    yet it's not.....what's am i missing....?

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,084
    Thanks
    11
    Thanked 100 Times in 98 Posts
    <?php echo $_GET['type];?>
    or shorthand
    <?=$_GET['type'];?>
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #3
    Regular Coder
    Join Date
    Jan 2004
    Posts
    245
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i don't believe it........i was typing every thing......i just didn't see it....im really sorry...


  •  

    Posting Permissions

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