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. How to code my url not to display the value of variable in PHP?

How to code my url not to display the value of variable in PHP?

Scheduled Pinned Locked Moved Web Development
tutorialphpcomhelpquestion
4 Posts 4 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.
  • D Offline
    D Offline
    dachusen
    wrote on last edited by
    #1

    Example this is my two url.. http://www.mysite.com/page\_one.php?post\_id=4 http://www.mysite.com/listingsecond.php?\_id=2 How to code in PHP same as the url below: http://www.mysite.com/page\_one http://www.mysite.com/listingsecond thank you so much for those who can solve my problem.... :doh:

    L A C 3 Replies Last reply
    0
    • D dachusen

      Example this is my two url.. http://www.mysite.com/page\_one.php?post\_id=4 http://www.mysite.com/listingsecond.php?\_id=2 How to code in PHP same as the url below: http://www.mysite.com/page\_one http://www.mysite.com/listingsecond thank you so much for those who can solve my problem.... :doh:

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

      You are using $_GET[^]. If you don't want the query string showing in the URL, use $_POST[^]

      1 Reply Last reply
      0
      • D dachusen

        Example this is my two url.. http://www.mysite.com/page\_one.php?post\_id=4 http://www.mysite.com/listingsecond.php?\_id=2 How to code in PHP same as the url below: http://www.mysite.com/page\_one http://www.mysite.com/listingsecond thank you so much for those who can solve my problem.... :doh:

        A Offline
        A Offline
        Atul Gupta
        wrote on last edited by
        #3

        You should use .htaccess. Take a look at this article, it is for beginner http://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/[^]

        http://www.techsirius.com

        1 Reply Last reply
        0
        • D dachusen

          Example this is my two url.. http://www.mysite.com/page\_one.php?post\_id=4 http://www.mysite.com/listingsecond.php?\_id=2 How to code in PHP same as the url below: http://www.mysite.com/page\_one http://www.mysite.com/listingsecond thank you so much for those who can solve my problem.... :doh:

          C Offline
          C Offline
          chrislim2888
          wrote on last edited by
          #4

          Modify your caller page to use POST instead of GET.

          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