Php get $ _ GET [gsid] value-php Tutorial

Source: Internet
Author: User
Php get $ _ GET [gsid] value problem $ numdog cannot GET $ _ GET [gsid] value, always equal to initialization 1. if you do not initialize, it also reports an error, undefined variables. For guidance, the value of the editing page is a problem.


Reply to discussion (solution)

How did you write your form?

It is necessary to output at the beginning of the code to see what the page has submitted.

Print_r ($ _ GET );
Print_r ($ _ POST );

If you do not want to see the error prompt, add
Error_reporting (E_ALL ^ E_NOTICE );

No problem with the code. the gsid cannot be obtained. is it from POST,
Can you get the value in this way.
$ _ REQUEST ['gsid ']
In addition, if the gsid is a number, we recommend that you use intval ($ _ REQUEST ['gsid.

If an error is found, you must add a parameter such as action = "dogdo. php? Id = 5 ". thank you for your enthusiastic discussion!

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.