Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. get $_GET["id"] in window.location in PHP

get $_GET["id"] in window.location in PHP

Scheduled Pinned Locked Moved Web Development
questionjavascriptphpcomannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jassim Rahma
    wrote on last edited by
    #1

    Hi, I have a php file with jquery button like this:

    and:

    $(function() { $( "#btnContact" ).button(); });
    $('#btnContact').click(function() { window.location = 'contact_member.php'; });

    I want to make the window.location as:

    contact_member.php?id= +

    How can I do this please?

    Technology News @ www.JassimRahma.com

    L K 2 Replies Last reply
    0
    • J Jassim Rahma

      Hi, I have a php file with jquery button like this:

      and:

      $(function() { $( "#btnContact" ).button(); });
      $('#btnContact').click(function() { window.location = 'contact_member.php'; });

      I want to make the window.location as:

      contact_member.php?id= +

      How can I do this please?

      Technology News @ www.JassimRahma.com

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      1. Use the correct forum. 2. You really need to get hold of a PHP reference.

      Veni, vidi, abiit domum

      1 Reply Last reply
      0
      • J Jassim Rahma

        Hi, I have a php file with jquery button like this:

        and:

        $(function() { $( "#btnContact" ).button(); });
        $('#btnContact').click(function() { window.location = 'contact_member.php'; });

        I want to make the window.location as:

        contact_member.php?id= +

        How can I do this please?

        Technology News @ www.JassimRahma.com

        K Offline
        K Offline
        Killzone DeathMan
        wrote on last edited by
        #3

        With a little search, there is a JS function that parse the URL and you can get the "id" value ;)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups