How to send multiple values in a href link in PHP?

前端 未结 2 1914
一个人的身影
一个人的身影 2020-12-20 03:44

I want to send multiple values to a different page using a href link. But what I retrieve is the first 2 values only, rest shows an error of undefined index.

2条回答
  •  [愿得一人]
    2020-12-20 04:20

    try using urlencode, as if there are any special characters in the strings, it could have an effect on the querystring as a whole;

    echo " Next ";
    

    Plus you had a space between srch and page, that could have been causing a problem.

提交回复
热议问题