i created a flashform that has textfields and checkboxes, the flashform paste the textfield data into a php file without any problem, but im stuck on the checkboxes, i dont know how to post them into the php.
this is the actionscript from my âsendâ button in flash :
on (release) {
loadVariablesNum(âform.phpâ, 0, âPOSTâ);
gotoAndStop(2);
}
and this is the script i use in the php :
<?
$to = "email@mydomain.com";
$subject = âofferte aanvraagâ;
$msg = "Mijn naam is $naam
";
$msg .= "Mijn email adres is $email
";
$msg .= "Ik woon op de $straatnaam te $woonplaats
";
$msg .= "Ik ben te bereiken op telefoon nummer $telefoon
";
$msg .= "We willen huren op $verhuurstart tot en met $verhuurstop
Iâve got the same problem and posted on 15 forums still not a single reply like itâs not doable , found just some tips which donât seem to be clear or donât work⌠strange âŚ
well the thing is I can get the checkbox to pass state (didnât work it out for radio buttons yet?) but the problem is it passes the very first state so if uses clicks same checkbox few times it still passes only very first change of state which is âYesâ (ticked)
function onSelectAll(checkbox) {
checkBox1 = (check1.getValue() ? âNoâ : âYesâ);}
now I need to check the change of state using change handler somehow but i donât know how ??? I tried this but it didnât work and tried picking up âcheckBox1â in php mailer script as checkBox1 âŚ
well Iâm bit confused with your code but I the checkoboxes working with listeners
myCheckboxListener = new Object();
myCheckboxListener.click = function (eventObject)
{
//if checkbox selected assign value yes
if (check1.selected)
{ checkBox1 = check1.getValue() ? âNoâ : âYesâ; }
⌠etc
}
check1.addEventListener(âclickâ, myCheckboxListener);
it works fine, but I canât get the grip on radio Buttons especially because I need quite few different radio groups ⌠how do listeners work with radios ???