# PHP print/echo returns undefined

**URL:** https://forum.kirupa.com/t/php-print-echo-returns-undefined/58756
**Category:** Uncategorized
**Created:** [July 26, 2004, 12:24am UTC](https://forum.kirupa.com/t/php-print-echo-returns-undefined/58756 "2004-07-26T00:24:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![The\_Vulcan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/the_vulcan/32/145_2.png) [@The\_Vulcan](https://forum.kirupa.com/u/The_Vulcan)
#### Post date: [July 26, 2004, 12:24am UTC](https://forum.kirupa.com/t/php-print-echo-returns-undefined/58756/1 "2004-07-26T00:24:00Z")

</div>

I have a account creation form in Flash.

I have code to check that the user is not submitting a email address that has already been entered.

The code works and will not let you create an account if you enter a email address that is already in mySQL.

Problem is I need to let the user know this but can’t get it to print || echo back to flash.

display is a text box, all it ever returns is undefined…

```php
 
if($email_check > 0) {

 echo "&display=email Error!";
 print "&_root.write.display=email Error!&";

 unset($email_address); }

```

This should be simple so I must have a error somewhere…

Any ideas on where the error might be ?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 26, 2004, 12:46am UTC](https://forum.kirupa.com/t/php-print-echo-returns-undefined/58756/2 "2004-07-26T00:46:47Z")

</div>

**SOLVED**

My error was on the submit button…  
I had \*this.display \* set to something else and was to tired to realise it was calling $display from PHP. Hence not refreshing itself… ☹

```php
if(success){ 
_parent._parent.write.display.text = this.display;

```
