# Capturing data in a text box on results screen for Quiz

**URL:** <https://forum.kirupa.com/t/capturing-data-in-a-text-box-on-results-screen-for-quiz/284484>\
**Category:** Uncategorized\
**Created:** [March 19, 2009, 3:58pm UTC](https://forum.kirupa.com/t/capturing-data-in-a-text-box-on-results-screen-for-quiz/284484 "2009-03-19T15:58:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webguync](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/webguync/32/2434_2.png) [@webguync](https://forum.kirupa.com/u/webguync)\
**Post date:** [March 19, 2009, 3:58pm UTC](https://forum.kirupa.com/t/capturing-data-in-a-text-box-on-results-screen-for-quiz/284484/1 "2009-03-19T15:58:54Z")

</div>

Hi,

I have a little quiz, where at the end the results are calculated and the test takers are taken to a results screen which calculates their results.

I have AS3 code creating the message screen, and the score is calculating ok. I want to capture the users name on the results page, and this is not working. I have attached the code which calculates the score and where I added the instance name of the test box when they login. I get an error when I publish. The error is “Access of undefined property name name\_text”

obviously this is not how to capture that information, but not sure how to do it. Again, I have a text box with the instance name of “name\_txt”, and I am trying to capture that data on a results screen using AS3.

TIA

```auto

feedback.text = "Congrats" +name_txt+ "on finishing the exam!
Your score is "+Math.round(score*100)+"%
You may now close the exam window.";

```
