How to pass a PHP variable using the URL

后端 未结 6 516
暖寄归人
暖寄归人 2020-11-30 04:20

I want to pass some PHP variables using the URL.

I tried the following code:

link.php





        
6条回答
  •  醉梦人生
    2020-11-30 04:40

    All the above answers are correct, but I noticed something very important. Leaving a space between the variable and the equal sign might result in a problem. For example, (?variablename =value)

提交回复
热议问题