# Simple PHP to AS prob

**URL:** <https://forum.kirupa.com/t/simple-php-to-as-prob/96127>\
**Category:** Uncategorized\
**Created:** [December 5, 2003, 3:56am UTC](https://forum.kirupa.com/t/simple-php-to-as-prob/96127 "2003-12-05T03:56:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HL\_Novice](https://avatars.discourse-cdn.com/v4/letter/h/d9b06d/32.png) [@HL\_Novice](https://forum.kirupa.com/u/HL_Novice)\
**Post date:** [December 5, 2003, 3:56am UTC](https://forum.kirupa.com/t/simple-php-to-as-prob/96127/1 "2003-12-05T03:56:25Z")

</div>

hello, i am sending data from flash to php to my database with no prob. But i cant get my the php to send variable, called “checklog” back to my flash file.

this is the code i used on my submit button in flash  
[AS]  
on(press){  
\_root.checklog=0;  
loadVariablesNum (“[http://www.site.com/processForm.php",0,"post](http://www.site.com/processForm.php%22,0,%22post)”);  
}  
[/AS]  
this is the code in my frame 1  
[AS]  
stop();  
this.onEnterFrame = function () {  
trace(checklog);  
if(\_root.checklog == 1){  
\_root.gotoAndStop(2);  
}  
}  
[/AS]  
this is the last two line of my php file.

```php

<?
.....
$valueCheck=1;
print "&checklog=".$valueCheck;
?>

```

Now my trace(checklog) in my main Frame return 1 but its packed with spaces and i dont move to frame 2. Can someone help me or am i doomed to suck at this.  
:ne:

-woj-
