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">
search
Homephp教程PHP源码php switch 问题

php switch 问题

Jun 08, 2016 pm 05:28 PM
atpincludenbspphpquot

<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();
}
}

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools