나도 몰라, 실제로 내가 볼 수 없습니다 어떤 이점.
어쨌든 second.html에서 javascript (예 : jquery 프레임 워크)를 사용하여 쿼리 문자열을 구문 분석하고 값을 다시 얻을 수 있습니다.
first.html
<html>
<head>
</head>
<body>
<form method="GET" action="second.html">
<input type="text" name="myname" />
<input type="submit" value="click me" />
</form>
</body>
</html>
그리고, 당신의 second.html,이를 사용
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script type="text/javascript">
(function($) {
$.QueryString = (function(a) {
if (a == "") return {};
var b = {};
for (var i = 0; i < a.length; ++i)
{
var p=a[i].split('=');
if (p.length != 2) continue;
b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, " "));
}
return b;
})(window.location.search.substr(1).split('&'))
})(jQuery);
</script>
</head>
<body>
<script type="text/javascript">
alert('Test: ' + $.QueryString["myname"]);
</script>
</body>
</html>
JavaScript를 사용해야합니다. 그렇지 않으면 불가능합니다. – Pavlo