Where is the problem?

Source: Internet
Author: User
Where is the problem?
 ";} If (isset ($ _ POST ['c']) & isset ($ _ POST ['D']) {$ x =$ _ POST ['c']; $ y =$ _ POST ['D']; jisuan ($ x, $ y );} else echo "the result is 0! ";?>


Always prompts that c and d are not defined. Why?


Reply to discussion (solution)

The program is normal.

No errors were found. Paste the complete code and error information.

The program is normal.

I cannot find the error either. We recommend that you clear the browser cache by running the new command.

Is the above code in a file? It should be an HTML file in a file. The PHP code in index. php is correct,

 ";} If (isset ($ _ POST ['c']) & isset ($ _ POST ['D']) {$ x =$ _ POST ['c']; $ y =$ _ POST ['D']; jisuan ($ x, $ y );} else echo "the result is 0! ";?>


Create an index. php file and cut the above file to run the HTML page.

 ";} If (isset ($ _ POST ['c']) & isset ($ _ POST ['D']) {$ x =$ _ POST ['c']; $ y =$ _ POST ['D']; jisuan ($ x, $ y );} else echo "the result is 0! ";?>


Create an index. php file and cut the above file to run the HTML page.

Can the result be displayed on the HTML page?

The problem is solved. create an HTML page and reference the HTML file in the PHP file. thanks for the problem of displaying data on the page.

Notice can be set to ignore, without affecting the running

Notice can be set to ignore, without affecting the running
How to set it?


Notice can be set to ignore, without affecting the running
How to set it?
Error_reporting (0 );

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.