What is the reason for the extra characters after passing parameters using URLs? Solution

Source: Internet
Author: User
What is the reason for the extra characters after passing parameters using URLs? HTMLcode $ prev = $ page-1; echo & quot; & lt; aid = 'submitbuttons' href = menu_icon.php? Page = & quot;. $ prev. & quo what is the reason for the extra characters after passing parameters through URLs?
HTML code
  $ Prev = $ page-1; echo "previous page ";

When you click "previous page", the url is GET http: // localhost/test/html/test. php? Page = 1% 27, and after the previous page, although the elements on the page can be displayed, but no longer execute JS. Why?

------ Solution --------------------
Take a closer look at your url

Href = ...... 'Quotation marks

% 27, which happens to be'
------ Solution --------------------
Echo "previous page ";

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.