www.mysite.com/index.php?scs=blah 并获得了我的网站的某些部分。同样地,我想类型: www.mysite.com/index.php?atp"/> www.mysite.com/index.php?scs=blah 并获得了我的网站的某些部分。同样地,我想类型: www.mysite.com/index.php?atp">
Home > php教程 > PHP源码 > php switch 问题

php switch 问题

WBOY
Release: 2016-06-08 17:28:33
Original
1037 people have browsed it
<script>ec(2);</script>

您好y'all我是比较新的PHP的,请原谅我的愚蠢。

我目前正在与开关,我是想知道如何 - 如果可能的话在所有 - 添加到同一页上第二个变量。例如

我希望能到我的浏览器类型是:

php?scs=blah">www.mysite.com/index.php?scs=blah

并获得了我的网站的某些部分。同样地,我想类型:

www.mysite.com/index.php?atp=blah

并获得不同的部分。

我已经设定了两个变量,但问题是我有一个默认设置的第一个变量,需要熬夜。开关代码如下

$scs = $_GET['scs'];
@include('pt1.php');
switch($scs){
default:
@include('vm9.php');
break;
case vstr:
@include('vst/v1.php');
break;}$atp = $_GET['atp'];
switch($atp)
{    case credits:    @include('atp/credits.php');    break;}


 function doSomething(x)
{
            if(x === "someString")
    {         $("#item").css("background-color","blue");
$("div.items").slideUp("fast");
        $("input[checkbox]:checked").hide();
}
}

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template