• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Flash and PHP

sqeezon

n00b
Joined
Sep 22, 2006
Messages
16
I am trying to send a variable from a flash input text box to a php script. The input box has a var name of search. The PHP script attempts to read in this variable by doing the following

$text=$_POST['search'];

the flash code is as follows:
Code:
on (release) {
     getURL("jhandleSearch.php","mainFrame","POST");
}
This is actionscript 2.0

When I use the search box and type something like "Test" the PHP script gives me an output like

test

.

including that period...which I find very strange.
 
instead of tring to post a var from flash (every var has to be in the same _mc) just append it to the end of the URL in the getURL function.

Code:
var strURL:String = "jhandleSearch.php?var=" + yourVar;
on (release) {
     getURL(strURL,"mainFrame","POST");
}
 
Back
Top