Original address: http://www.cnblogs.com/xiaoxi/p/5695783.html1, directly the parameter of the form is written in the parameters of the controller corresponding method, applicable to the Get method submission, not for post mode submission. /**
The following code is the PHP resolution URL and gets the parameters in the URL, as shown in the following code:
string ' content ' (length=7) ' C ' => string ' index ' (length=5) ' a ' => string ' lists ' (length=5) ' catid ' => string ' 6 '
Jquery obtains url parameters and url-based parameters. jqueryurl
Getting URLs using jquery and getting url parameters using jquery are common operations. The following describes how to add code analysis. For details, see the following.
1. jquery is
The construction of the demonstration environment reference the previous article, this article is important to describe the URL to submit parameters and get the parameters of the specific operation and implementation."Reproduced use, please specify
Using jquery to get URLs and using jquery to get URL parameters is an operation we often use
1, jquery get URL is very simple, the code is as follows:
Window.location.href;
actually just use JavaScript to base the Window object, and it
Php obtains url parameters. php obtains url parameters. Php obtains url parameters. This document describes how php obtains url parameters. Share it with you for your reference. The details are as follows: php retrieves url parameters in the url.
First, PHP gets the URL of the current page:
Copy the Code code as follows:
Get the current script URLfunction Getcururl (){if (!empty ($_server["Request_uri")){$scriptName = $_server["Request_uri"];$nowurl = $scriptName;}Else{$scriptName =
"Reprint: Http://blog.csdn.net/mahoking"Normal URL Submission Parameters The format URL is: url.do?param1=mahc¶m2=8888.00You need to add the following method to the Hellocontroller object above:1 /** 2 * Spring MVC URL Submission Parameters3 *
Php retrieves the current url and replaces the parameter or url. First, PHP retrieves the URL of the current page: Copy the code as follows: get the current script URL functionGetCurUrl () {if (! Empty ($ _ SERVER [REQUEST_URI]) {$ scriptName $ _
This article describes how to parse a url in php, obtain url parameters, and obtain url parameters in four ways. It involves converting string parameters into arrays and converting parameters into strings, the code in this article is easy to
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.