Very simple about the problem, just don't know why

Source: Internet
Author: User
Very simple question, just don't know why?
index.php
PHP Code
  
               Calculation                

Perimeter area Calculation

Square | | Triangle | | Circular


form.class.php
PHP Code
  
  Shape=isset ($_request["id"])?        $_request["id"]: "rect";            } function __tostring () {$form = ';        return $form; } Private Function GetRect () {$input = '

Please enter the width and height of the rectangle

'; $input. = '

Width:

'; $input. = '

Height:

'; return $input; } Private Function Gettriangle () {$input = '

Please enter three sides of the triangle

'; $input. = '

First side:

'; $input. = '

Second side:

'; $input. = '

Third side:

'; return $input; } Private Function Getcircle () {$input = '

Please enter the radius of the circle

'; $input. = '

Radius:

'; return $input; }}?>


--------------------
When the point triangle, why output ' no this graph ', where is wrong?

------Solution--------------------
Id=triangle

Case "Triangle":

=====================
Understand??
  • 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.