kafir
1
I have a simpel bottom function that needs to pass variable to a php search page. I have listed the vars:
NAME=“newSearch” VALUE=“1”
NAME=“searchType” VALUE=“1”
NAME=“searchArea” VALUE=“0”
NAME=“pictureReq” VALUE=“0”
NAME=“fromYear” VALUE=“0000”
NAME=“fromMonth” VALUE=“00”
NAME=“fromDay” VALUE=“00”
NAME=“toYear” VALUE=“0000”
NAME=“toMonth” VALUE=“00”
NAME=“toDay” VALUE=“00”
NAME=“duration” VALUE=“0”
NAME=“continent” VALUE= $continent
NAME=“country” VALUE= $country
NAME=“region” VALUE=“0”
NAME=“rCity” VALUE=“0”
NAME=“rooms” VALUE=“0”
NAME=“oldContinent” VALUE=“0”
NAME=“oldCountry” VALUE=“0”
NAME=“oldRegion” VALUE=“0”
How do I pass this information from flash to PHP
Hope so one can help.
system
2
Thanks - how would you do the following:
E.g.: NAME=“searchType” VALUE="1"
Where do i type in the name and the value?
onClipEvent (load) {
$denmark = new LoadVars();
$var1 = “hello, I’m Bobby.”;
$var2 = 100;
$var3 = “John Deer”;
$denmark.variable1 = $var1;
$denmark.hellothere = $var2;
$denmark.byebye = $var3;
$denmark.send(“http://xx.com/search/search.php”);
}
system
3
I have tried this:
Action - bottom:
on(press){
loadVariables (‘http://xxcom/search/searchResults.php’, ‘denmark’);
}
Action - movieclip:
onClipEvent (load) {
$denmark = new LoadVars();
$newSearch = 1;
$searchType = 1;
$pictureReq = 0;
$denmark.newsearch = $newSearch;
$denmark.searchType = $searchType;
$denmark.pictureReq = $pictureReq;
$denmark.send(“http://xxom/search/search.php”);
}
Do you think that would work?
/kafir