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
    New Coder
    Join Date
    Mar 2005
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Writing "your version is" based on ?v="blah" in address to page

    How would I go about writing "You have a version ___" on a page, having ___ determined by the link to the site i.e. version.php?v=2 would show up "you have a version 2"? I know how to do it, but it has slipped my mind! Can someone help me out?

  • #2
    Senior Coder
    Join Date
    Aug 2003
    Location
    One step ahead of you.
    Posts
    2,815
    Thanks
    0
    Thanked 3 Times in 3 Posts
    PHP Code:
    <?php
    print 'You have version: ' $_GET['v'];
    ?>
    ??
    I'm not sure if this was any help, but I hope it didn't make you stupider.

    Experience is something you get just after you really need it.
    PHP Installation Guide Feedback welcome.

  • #3
    New Coder
    Join Date
    Mar 2005
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thats exactly it. EDIT nvm got it figured out! Thanks!
    Last edited by SCSS; 06-27-2005 at 08:47 PM. Reason: nvm


  •  

    Posting Permissions

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