# PHP and flash make me crazy! please help me

**URL:** <https://forum.kirupa.com/t/php-and-flash-make-me-crazy-please-help-me/189633>\
**Category:** Uncategorized\
**Created:** [June 4, 2006, 8:59pm UTC](https://forum.kirupa.com/t/php-and-flash-make-me-crazy-please-help-me/189633 "2006-06-04T20:59:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joran420](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joran420/32/2329_2.png) [@joran420](https://forum.kirupa.com/u/joran420)\
**Post date:** [June 4, 2006, 8:59pm UTC](https://forum.kirupa.com/t/php-and-flash-make-me-crazy-please-help-me/189633/1 "2006-06-04T20:59:38Z")

</div>

ok so why is my PHP doing this(using it with a flash swf)

I posted a different thread…it seems like maybe my problem is something else(variables not updating)

here is my flash code to send the data to PHP

```auto

[LEFT]loginDets.pwd = pwd_txt.text;    
loginDets.sendAndLoad("http://localhost/test.php?ck="+new Date().getTime(), loginResponse);[/LEFT]
  

```

the new Date thing is supposed to be forcing flash to reload the PHP rather than using a cached version

this is my PHP…its not very complicated(test.php)

```auto

     [LEFT]
<?php
$pw = $_POST['pwd'];
 echo '&userPW='.urlencode($pw).'&junk=';
?>[/LEFT]
 

```

the junk field is supposed to catch any crap put on by ads

if i run it on localhost it works fine and everytime i change the password and check this.userPW it changes userPW

however once i upload it to my host([godaddy.com](http://godaddy.com))  
and put AAA into my password field it returns AAA  
but then if i change it to BBB it still straces userPW as AAA

however if i take my trace a little further and trace the whole object returning from PHP  
it looks more like this  
(this is the first return when i use AAA as pw[I put impt stuff in bold])  
junk=%3C%2Fobject%3E%3C%2Flayer%3E%3C%2Fspan%3E%3C %2Fdiv%3E%3C%2Ftable%3E%3C%2Fbody%3E%3C%2Fhtml%3E% 3C%21%2D%2D%20adsok%20%2D%2D%3E%0D%0A%3Cscript%20l anguage%3D%27javascript%27%20src%3D%27https%3A%2F% 2Fa12%2Ealphagodaddy%2Ecom%2Fhosting%5Fads%2Fgd01% 2Ejs%27%3E%3C%2Fscript%3E%0D%0A& **userPW=AAA** &%0A=&onLoad=%5Btype%20Function%5D

(then the second return when i change the pw field to BBB)  
junk=%3C%2Fobject%3E%3C%2Flayer%3E%3C%2Fspan%3E%3C %2Fdiv%3E%3C%2Ftable%3E%3C%2Fbody%3E%3C%2Fhtml%3E% 3C%21%2D%2D%20adsok%20%2D%2D%3E%0D%0A%3Cscript%20l anguage%3D%27javascript%27%20src%3D%27https%3A%2F% 2Fa12%2Ealphagodaddy%2Ecom%2Fhosting%5Fads%2Fgd01% 2Ejs%27%3E%3C%2Fscript%3E%0D%0A& **userPW=&%0A=** &onLoad=%5Btype%20Function%5D\<-???

but if i wait maybe a full minute and resubmit the BBB  
junk=%3C%2Fobject%3E%3C%2Flayer%3E%3C%2Fspan%3E%3C %2Fdiv%3E%3C%2Ftable%3E%3C%2Fbody%3E%3C%2Fhtml%3E% 3C%21%2D%2D%20adsok%20%2D%2D%3E%0D%0A%3Cscript%20l anguage%3D%27javascript%27%20src%3D%27https%3A%2F% 2Fa12%2Ealphagodaddy%2Ecom%2Fhosting%5Fads%2Fgd01% 2Ejs%27%3E%3C%2Fscript%3E%0D%0A& **userPW=BBB** &%0A=&onLoad=%5Btype%20Function%5D\<-it works

so if i change it and send it right away it returns a null value…but why does this.userPW still trace the old value  
and why isnt +new Date().getTime() focing it to load a fully new version of the PHP? it seems like there shouldnt be a reason to have to wait the full minute

Is it because im hosting on godaddy?
