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