# How to display $\_POST\['score'\]; on page?

**URL:** <https://forum.kirupa.com/t/how-to-display--post-score-on-page/323455>\
**Category:** programming\
**Created:** [July 1, 2011, 6:55pm UTC](https://forum.kirupa.com/t/how-to-display--post-score-on-page/323455 "2011-07-01T18:55:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![j33k](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@j33k](https://forum.kirupa.com/u/j33k)\
**Post date:** [July 1, 2011, 6:55pm UTC](https://forum.kirupa.com/t/how-to-display--post-score-on-page/323455/1 "2011-07-01T18:55:28Z")

</div>

I have a as3 class that sends strings flash to php, and uses the following php to confirm they were sent. My flash player does receive the 1, so I know that the communication between the two is working, but how do I display the ‘score’ variable that is received?

```php
<?php
$teamName = $_POST['playerName'];
$score = $_POST['score'];

$success = "1";
//...
$returnVars = array();
$returnVars['success'] = $success;
$returnString = http_build_query($returnVars);
echo $returnString;
?>

```

total php n00b,  
j33k
