# Confirming data from PHP script

**URL:** <https://forum.kirupa.com/t/confirming-data-from-php-script/261330>\
**Category:** Uncategorized\
**Created:** [May 26, 2008, 2:34pm UTC](https://forum.kirupa.com/t/confirming-data-from-php-script/261330 "2008-05-26T14:34:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![activa](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@activa](https://forum.kirupa.com/u/activa)\
**Post date:** [May 26, 2008, 2:34pm UTC](https://forum.kirupa.com/t/confirming-data-from-php-script/261330/1 "2008-05-26T14:34:57Z")

</div>

I have a swf that sends data to a PHP script on my server. The script works fine, sends me an email, and sends a string back to the swf. The swf sees the data, but is behaving strangely. Here’s what I mean:

```
function onComplete (event:Event) {
	if (event.target != null) {
		if (event.target.data == 'secretString') {
			trace ('ok');
		} else {
			trace (event.target.data);
		}
	}
}

```

The PHP script sends the correct string. I know because the swf traces ‘secretString.’ Why doesn’t it recognize the string in the if conditional? I’ve already checked the dataFormat, and it confirms that the data is text.
