0

ここからリクエストフォームを取得してフレンドリURLを取得するためにこのスクリプトを取得しました...リクエストフォームを取得して フレンドリURLを取得する のはスクリプトです

<form id='contactus' action='search_out.php' method='get' accept-charset='UTF-8'>
 <input type="text" name="first" value="" id="first">
    <input type="text" name="second" value="" id="second">
    <input type="text" name="third" value="" id="third">

    <p><input type="button" value="Continue &rarr;" onclick="submitFriendly();"></p>
</form>
<script type="text/javascript">
function submitFriendly() {
window.location.href = window.location.href  + '/Search/' + document.getElementById('first').value + '/' + document.getElementById('second').value + '/' + document.getElementById('third').value;
}
</script>

私はjavascriptが苦手です...これをsearch_out.phpという新しいページに投稿したいのですが、このスクリプトは同じページに投稿しています...他のページに投稿する方法はありますか...

thxを助けてください

4

1 に答える 1

1

スクリプトが行うことは、現在の場所を取得することです。新しいものをあげてください。

window.location.href = "search_out.php/"+document.get.......
于 2012-08-29T17:07:21.733 に答える