我的网站上使用了此代码
if( isset($_GET['gw'] )){
//this is some content
}
所以每当我的网址是这样的
http://mywebsite.com/?gw=hello
该 div 内的内容将出现。它工作得很好,但现在我想做的是为特定字符串提供不同的内容。像这样的东西
if (gw=hello) {
// content here
} else if (gw=goodbye) {
// content here
} else {
//content here
}
我知道那不是代码,但是有谁知道我可以做到这一点的方法吗?谢谢!