php - discrepancy between source code and actual web page -
i have coded math quiz in php pulls 10 questions , answers randomly database of 20 questions.
this works fine, when click on "view source code", source code displays different questions ones displayed on actual webpage. seems show other random questions database. know why happens?
here link quiz: http://socialsoftware.purchase.edu/nicholas.roberts/mathquiz/mathselect.php?category=calculus
notice how source code shows different data actual webpage...
if 'view page source', browser issues new request, new random set of questions in source.
it's different when choose 'inspect element'. if that, inspecting details of current document, not loaded, in dom in browser.
Comments
Post a Comment