laukis
June 7th, 2004, 06:27 AM
Ive made a movie that add strings from several input text fields to an array. This array is sent from the flash video to php.
This is working fine when I preview the movie as Flash. The php script prints the variables as intended.
But when I preview it as html the arrays are all empty...
Can anyone tell me why?
on (release) {
number_of_attr1 = main._currentframe + 1;
suggestions1 = new Array();
if(main.attr1.text.isEmpty()) {
gotoAndStop(8);
}
else {
for(i=1; i<=number_of_attr1; i++) {
attr = main["attr"+i]
suggestion = attr.text;
if(!suggestion.isEmpty()) {
suggestions1.push(suggestion);
}
}
var submit1 = new LoadVars();
submit1.sugg1 = suggestions1;
submit1.send("http://mylink.php","_self","POST (http://mylink.php)");
}//end else
}
This is working fine when I preview the movie as Flash. The php script prints the variables as intended.
But when I preview it as html the arrays are all empty...
Can anyone tell me why?
on (release) {
number_of_attr1 = main._currentframe + 1;
suggestions1 = new Array();
if(main.attr1.text.isEmpty()) {
gotoAndStop(8);
}
else {
for(i=1; i<=number_of_attr1; i++) {
attr = main["attr"+i]
suggestion = attr.text;
if(!suggestion.isEmpty()) {
suggestions1.push(suggestion);
}
}
var submit1 = new LoadVars();
submit1.sugg1 = suggestions1;
submit1.send("http://mylink.php","_self","POST (http://mylink.php)");
}//end else
}