on stage -two checkboxes - instance names - cb1 and cb2
a button - instance name - btn_sendMail
Code:
cb1.label = "Bananas";
o_cb1 = new Object();
o_cb1.click = function(obj){
sel_1 = obj.target.selected;
lab_1 = obj.target.label;
trace(lab_1+"/"+sel_1);
};
cb1.addEventListener("click", o_cb1);
/////////////////////////////////////
cb2.label = "Oranges";
o_cb2 = new Object();
o_cb2.click = function(obj){
sel_2 = obj.target.selected;
lab_2 = obj.target.label;
trace(lab_2+"/"+sel_2);
};
cb2.addEventListener("click", o_cb2);
/////////////////////////////////////
btn_sendMail.onRelease = function(){
lv = new LoadVars();
if(sel_1) lv.selection1 = lab_1;
if(sel_2) lv.selection2 = lab_2;
trace(lv);
lv.onLoad = function(){ trace(unescape(this)); };
lv.sendAndLoad("path to php",lv,"POST");
};
/*--add to your php --
<?php
$selection1 = $_POST['selection1'];
$selection2 = $_POST['selection2'];
......
......
The visitor would like a quote on the following:
------------------------------------------------------
$selection1
$selection2
......
?>
*/