自已想搞个PHP版的余数计算器,但是一直出错。请高手帮小弟我看看,多谢
Jun 13, 2016 am 10:12 AM
gt
input
lt
quot
type
自已想搞个PHP版的余数计算器,但是一直出错。请高手帮我看看,谢谢
- PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?php $a = $_POST['a'];$b = $_POST['b'];$c = $a % $b;?>
Copy after login
------解决方案--------------------
报什么错!还有你的$a,$b两个数字,要转化为数字才可以的。
------解决方案--------------------
------解决方案--------------------
------解决方案--------------------
$a = $_POST['a'];
$b = $_POST['b'] or $b= 1;
$c = $a % $b;
?>
echo "余数$c";
?>
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot tools Tags

Hot Article
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

What are the differences between Huawei GT3 Pro and GT4?

Fix: Snipping tool not working in Windows 11

What are the uses of the Type keyword in Go?

How to implement laravel input hidden field

Solve Ubuntu mounting mobile hard disk error: unknown file system type exfat

How to encapsulate input components and unified form data in vue3

How to Fix Can't Connect to App Store Error on iPhone

Detailed explanation of input box binding events in Vue documents
