How to pass parameters with `include`?

前端 未结 6 1358
醉梦人生
醉梦人生 2021-02-15 16:50

I have a PHP script called customers.php that is passed a parameter via the URL, e.g.:

http://www.mysite,com/customers.php?employeeId=1

Inside my customers.php s

6条回答
  •  后悔当初
    2021-02-15 17:30

    This is not so clean but this will work if you need to enter a static parameter:

    if (true){
        echo "";
    }
    else
    {
        echo "";
    }
    

    Just put it within your source code for the page which calls the query_source.php.

    Once again, it is NOT very clean...

提交回复
热议问题