Phpswitch-PHP source code

Source: Internet
Author: User
Ec (2); Hello yall, I am a relatively new PHP, please forgive me for being stupid. I am currently working with the switch, and I am wondering how-if possible, add the second variable to the same page on All. For example, if I want to access my browser: php? Scsblahwww. mysite. comindex. php? Scsblah and obtained some parts of my website. Similarly, I want the type: www. mysite. comindex. php? Atp script ec (2); script

Hi y'all, I'm a new PHP. Please forgive me for being stupid.

I am currently working with the switch, and I am wondering how-if possible, add the second variable to the same page on All. For example

My browser type is:

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

And obtained some parts of my website. Similarly, I want the type:

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

And obtain different parts.

I have already set two variables, but the problem is that I have the first variable set by default and need 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 ");
$ ("P. 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.