PHP passing parameters via URL

前端 未结 2 2005
我在风中等你
我在风中等你 2020-12-03 12:58

I want to know how I can pass parameters between pages through the URL without having to add variables eg:

mydomain.com/file.php?var1=val1&var2=val2&         


        
2条回答
  •  误落风尘
    2020-12-03 13:35

    Your third example is an example of how REST identifies a server side resource. What you are talking about here sounds very much like REST will do what you want. I would suggest starting here (http://en.wikipedia.org/wiki/Representational_State_Transfer#RESTful_web_services).

提交回复
热议问题