View Single Post

  #54 (permalink)  
Old 28-08-08, 17:48
codezpecg codezpecg is offline
Junior Member
 
Join Date: Aug 2008
Posts: 6
Rep Power: 0
codezpecg is on a distinguished road
Re: Email form with pictures - Flash CS3 and PHP

Thanks, but I found that right after I asked. I got it so the checkboxes work but I cant seem to figure out how to get it in email, it only shows up as [object CheckBox] in an email.

I dont know how to declare it correctly this is what I have (only parts of code)

var homeCh:CheckBox = new CheckBox();
var homeHc:CheckBox = new CheckBox();
var underRb:RadioButton = new RadioButton();
var overRb:RadioButton = new RadioButton();

private function CheckBox2():void
{
addChild(homeCh);
addChild(homeHc);
addChild(underRb);
addChild(overRb);
underRb.groupName = "valueGrp";
overRb.groupName = "valueGrp";
homeCh.move(12.6, 255.0);
homeCh.width = 120;
homeCh.label = "";
homeHc.move(12.6, 269.4);
homeHc.width = 120;
homeHc.label = "";
underRb.move(13.1, 301.4);
underRb.enabled = true;
underRb.width = 120;
underRb.label = "";
overRb.move(13.1, 344.4);
overRb.enabled = true;
overRb.width = 120;
overRb.label = "";
homeCh.addEventListener(MouseEvent.CLICK, clickHandler);
homeHc.addEventListener(MouseEvent.CLICK, clickHandler2);

}
function clickHandler(event:MouseEvent):void {

underRb.enabled = event.target.selected;
overRb.enabled = event.target.selected;
}

private function sendMessage():void
{
var variables:URLVariables=new URLVariables();
variables.abs_url=THIS_FORM_ABSOLUTE_URL;
variables.firstName=_first;
variables.lastName=_last;
variables.email=_email;
variables.phone=_phone;
variables.city=_city;
variables.state=_state;
variables.zip=_zip;
variables.country=_country;
variables.comment=_comment;
variables.homeHc22=homeHc;

homeHc is the one of the checkboxes any help? thanks
Reply With Quote