How to pass a number to the next page

Source: Internet
Author: User
An idiot question: how do I pass a number to the first page of the next page: & lt; ahrefstaff. php? Number1 & gt; 1 & lt; a & gt; & lt; br & gt; (pass number1 in the past) page 2: staff. php $ mongomernisset ($ _ REQUEST [number])? $ _ REQUEST [number]: 1; $ How to pass a number 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?

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.