I think the problem could be several things:
Here you are setting the value of lastID to the query string value for "varname". If you have "?varname=xxx" on the query string that's right, but I'm guessing it's actually "?itemID=xxx"
This line means that the query will be for the string"lastID":
It should be:
Hopefully one of these changes will do it.
M.
Here you are setting the value of lastID to the query string value for "varname". If you have "?varname=xxx" on the query string that's right, but I'm guessing it's actually "?itemID=xxx"
var queryStringVals = $().SPServices.SPGetQueryString(); var lastID = queryStringVals["varname"]; alert(lastID);
"<FieldRef Name='Quiz' /><Value Type='Text'>lastID</Value>" +
"<FieldRef Name='Quiz' /><Value Type='Text'>" + lastID + "</Value>" +
M.