PHP Switch Issue

Source: Internet
Author: User
Tags php switch

Hello y ' All I am relatively new to PHP, please forgive me for being stupid.

I'm currently working with the switch, and I was wondering how--if possible at all--to add the second variable to the same page. For example

I want to be able to my browser type is:

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

And got some parts of my site. Similarly, I would like to type:

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

And get a different part.

I've set two variables, but the problem is I have a default setting for the first variable that needs to stay up late. The switch code is as follows

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.