It's easy, you just assign to the menu something like this:
// you have to write this code to FRAME where the menu is located, NOT
TO MENU ITSELF
myMenu.onRelease = function():Void {
sendForm();
}
//then define some sending variables..
var sender:LoadVars = new LoadVars();
sender.onLoad = function(success:Boolean):Void {
if(success) {
trace("form sent");
}
else {
trace("an error occured");
}
}
function sendForm():Void {
sender.value1 = textfield1.text;
sender.value2 = textfield2.text;
sender.value3 = textfield3.text;
sender.value4 = textfield4.text;
sender.value5 = textfield5.text;
sender.sendAndLoad("mySendingScript.php", sender, "POST");
}
[quoted text, click to view] greybeard wrote:
> I have a hidden form that I want to pass the value to another Web page. I want
> to know if it is possible to send the form without clicking a submit button. I
> have a Macromedia style menu (Flash) and would like to be able to pass the form
> value when I click on the menu. Is this possible? If so how? If not what's an
> alternative?
>
> Thanks for your help in advance