Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

how to get questionid with php,ajax,jquery

naveennaveen indiaMember Posts: 1

I have a quiz script. My script contains quiz.js, getquestions.php, insertresults.php. In quiz.js:
var i = 1;
var sec = 20;
var timetaken = 0;
var answer;
var points;
var result = .5;
var score = 0;
var f = new Date();
var duration;
var containerWidth;
var decrement;
var CallingSpeed = 30;
var questionid;
var AnswerID;
var userid = 0;
var testid = 0;
var defaulttime;
var maxRatingScale = 2000;
var minRatingScale = 1000;
var answer1;
var answer2;
var answer3;
var AnswerID = "1";
function getQuestion() {
testid = document.getElementById("Test").value;
userid = document.getElementById("User").value;
$.get("Questions.php", { no: 1, testid: testid, userid: userid }, function (data) {
if (data != null) {
$("#divTest1").html(data);
onSuccess(data);
}
else {
getSummary();
}
})
}

i am new to php. How to get questions from getquestion.php and what is code for getquestion.php?

Tagged:
Sign In or Register to comment.