开发者

problem during data update in php ajax

开发者 https://www.devze.com 2023-01-10 13:04 出处:网络
ajax code- 开发者_运维技巧 xmlhttp.open(\"GET\",\"voting.php?qid=\"+qid+\"&uid=\"+uid+\"&type=\"+type,true);

ajax code-

开发者_运维技巧
xmlhttp.open("GET","voting.php?qid="+qid+"&uid="+uid+"&type="+type,true);

html-

<td ><img src="images/up.jpeg" style="border:none;" title="Like" 
                onclick="doVote('<?php echo $q_id; ?>','<?php echo $_SESSION['UserId']; ?>','up')"></td>

problem: qid is getting passed to voting.php page but uid and type are not.Why?


try

xmlhttp.open("GET","voting.php?qid="+qid+"&uid="+uid+"&type="+type,true);

?

0

精彩评论

暂无评论...
验证码 换一张
取 消