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