How to set $_GET variable

前端 未结 9 477
梦如初夏
梦如初夏 2020-12-03 21:22

How do i set the variable that the $_GET function will be able to use, w/o submitting a form with action = GET?

9条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-03 21:51

    The $_GET variable is populated from the parameters set in the URL. From the URL http://example.com/test.php?foo=bar&baz=buzz you can get $_GET['foo'] and $_GET['baz']. So to set these variables, you only have to make a link to that URL.

提交回复
热议问题