An idiot question: how do I pass a number to the first page of the next page: & lt; ahref = staff. php? Number = 1 & gt; 1 & lt;/a & gt; & lt; br & gt; (pass number = 1) second page: staff. php $ mongomern = an idiot question: how to pass numbers to the next page
First page: 1
(Pass number = 1)
Page 2: staff. php
$ Mongomern = isset ($ _ REQUEST ['Number'])? $ _ REQUEST ['Number']: '1 ';
$ Mongomern = $ mongomern + 2;
It is found that $ mern is always = 2; it cannot be added or subtracted like a number,
I suspect that the letter '1' is passed, not the number 1. is it true? If it is correct, how can we transmit numbers?
------ Solution --------------------
$ Merge mern = intval ($ _ GET ['Number']);
------ Solution --------------------
Var_dump ($ _ REQUEST); to see if it has been passed?
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