다음은 내 데이터베이스 내 문자 위치를 업데이트 내 스크립트입니다업데이트 데이터베이스
<script language="javascript" type="text/javascript">
function positionUpdate(){
var word = document.getElementById('test').value;
var queryString = "?word=" + word;
ajaxRequest.open("GET", "new_position.php" + queryString, true);
ajaxRequest.send(null);
alert(queryString);
}
</script>
다음 실행 위의 스크립트를 알려주는 스크립트입니다하지만 난 그것을 가로 질러 두 개의 변수를 보낼 필요 업데이트 할 내용을 알고 있습니다. 나는 그와 값을 전송하고 그렇지 않으면 항상 같은 것 상단에있는 스크립트의 변수를 넣지 필요하므로
<a onClick="positionUpdate();"><img src="images/transparent.gif" border="0" /></a>
위의 링크는 여러 번 사용된다. 나는 당신의 질문을 이해하지
Dupe : http://stackoverflow.com/questions/719880/submit-php-variables-with-javascript-link – Damovisa
실제로 두 가지 질문을 신중하게 읽으면 처음에 잘못된 질문을 한 것을 깨닫고 나서 이것을 만들었습니다. – Ryan
좋아, 문제 없음 - 그냥 아주 비슷하게 보였다 :) – Damovisa