1 Reply Latest reply on May 19, 2009 11:09 AM by _Natasha_

    Sending the Value to the database of the selected item in the radioButton

    re-Flexing Level 1

      I want to pass  the value to the database that I selected on the radioButton

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
           <mx:Text y="36" text="The Christian and Missionary Alliance Churches of the Philippines, Inc" width="581" fontWeight="bold" fontSize="15" horizontalCenter="46"/>
           <mx:Text y="59" text="( C A M A C O P)" fontWeight="bold" fontSize="12" horizontalCenter="8"/>
           <mx:Text y="77" text="MEMBERSHIP IDENTIFICATION FORM" width="502" fontSize="17" fontWeight="bold" textAlign="center" horizontalCenter="0"/>
           <mx:Text y="101" text="Date: " width="47" fontWeight="bold" textAlign="center" horizontalCenter="-71"/>
           <mx:DateField y="99" id="dateToday" horizontalCenter="18" editable="true" width="140" enabled="true"/>
           <mx:Label y="153" text="District:" fontWeight="bold" horizontalCenter="-418"/>
           <mx:TextInput y="151" maxChars="15" id="district" width="249" enabled="true" horizontalCenter="-260"/>
           <mx:Text y="179" text="Name of Local Church:" fontWeight="bold" horizontalCenter="-378"/>
           <mx:TextInput y="177" width="400" id="nameLocalChurch" maxChars="255" enabled="true" horizontalCenter="-104"/>
           <mx:Text y="205" text="Local Church Address:" fontWeight="bold" horizontalCenter="-378"/>
           <mx:TextInput y="203" width="401" id="addressLocalChurch" maxChars="255" enabled="true" horizontalCenter="-105"/>
           <mx:Text y="231" text="Name:" fontWeight="bold" horizontalCenter="-422"/>
           <mx:TextInput y="229" width="489" id="givenName" maxChars="255" enabled="true" horizontalCenter="-149"/>
           <mx:Text y="254" text="(Given Name/Middle Name/Family Name - CAPITALIZE)" fontStyle="italic" horizontalCenter="-158"/>
           <mx:Text y="284" text="Position in the Church: " fontWeight="bold" horizontalCenter="-376"/>
           <mx:TextInput y="276" width="401" id="posInChurch" maxChars="225" enabled="true" horizontalCenter="-105"/>
           <mx:Text y="310" text="Profession/Title:" fontWeight="bold" horizontalCenter="-393"/>
           <mx:TextInput y="306" width="434" id="professionTitle" maxChars="225" enabled="true" horizontalCenter="-121"/>
           <mx:Text y="333" text="Community Involvement/Work" fontWeight="bold" horizontalCenter="-351"/>
           <mx:Text y="355" text="Gift Skill:" fontWeight="bold" horizontalCenter="-415"/>
           <mx:TextInput y="353" width="475" enabled="true" horizontalCenter="-142" id="giftSkill" maxChars="225"/>
           <mx:Text y="381" text="Home Address:" fontWeight="bold" horizontalCenter="-397"/>
           <mx:TextInput y="379" width="448" id="homeAddress" enabled="true" horizontalCenter="-128" maxChars="225"/>
           <mx:Text y="406" text="Status:" fontWeight="bold" horizontalCenter="-420"/>
           <mx:Text y="432" text="Date of Marriage:" fontWeight="bold" horizontalCenter="-391"/>
           <mx:TextInput y="430" enabled="true" id="dateOfMarriage" horizontalCenter="-258" maxChars="225"/>
           <mx:Text y="432" text="(If Married)" fontWeight="normal" fontStyle="italic" horizontalCenter="-144"/>
           <mx:Text y="458" text="Tel./Cell Phone:" fontWeight="bold" horizontalCenter="-396"/>
           <mx:TextInput y="456" width="436" id="cell" enabled="true" horizontalCenter="-122" maxChars="225"/>
           <mx:Text y="484" text="SSS/GSIS No." fontWeight="bold" horizontalCenter="-402"/>
           <mx:TextInput y="482" width="215" id="sss" enabled="true" maxChars="15" horizontalCenter="-243"/>
           <mx:Label y="484" text="Blood Type" fontWeight="bold" horizontalCenter="-94"/>
           <mx:TextInput y="482" width="154" id="bloodType" enabled="true" maxChars="15" horizontalCenter="19"/>
           <mx:Text y="509" text="Height" fontWeight="bold" horizontalCenter="-421"/>
           <mx:Text y="510" text="Weight" fontWeight="bold" horizontalCenter="-279"/>
           <mx:TextInput y="508" id="weight" enabled="true" maxChars="15" horizontalCenter="-168"/>
           <mx:Text y="510" text="Birthday" fontWeight="bold" horizontalCenter="-53"/>
           <mx:Text y="536" text="TIN No." fontWeight="bold" horizontalCenter="-420"/>
           <mx:TextInput y="534" id="tin" enabled="true" horizontalCenter="-311" maxChars="225"/>
           <mx:Text y="536" text="Date of Baptism" fontWeight="bold" horizontalCenter="-174"/>
           
           <mx:Text y="536" text="(If Baptized)" fontStyle="italic" horizontalCenter="32"/>
           <mx:Text y="573" text="Annual Income:" fontWeight="bold" height="18" fontSize="13" horizontalCenter="-384"/>
           <mx:RadioButton y="563" label="Below 10K" id="first" enabled="true" horizontalCenter="-276" groupName="annualIncome"/>
           <mx:RadioButton y="593" label="76k-100k" id="fifth" enabled="true" horizontalCenter="-192" groupName="annualIncome"/>
           <mx:RadioButton y="563" label="11k-20k" id="second" enabled="true" horizontalCenter="-195" selected="false" groupName="annualIncome"/>
           <mx:RadioButton y="563" label="21k-40k" id="third" enabled="true" horizontalCenter="-116" selected="false" groupName="annualIncome"/>
           <mx:RadioButton y="593" label="101k-above" id="sixth" enabled="true" horizontalCenter="-106" groupName="annualIncome"/>
           <mx:RadioButton y="593" label="41k-75k" id="fourth" enabled="true" horizontalCenter="-280" groupName="annualIncome"/>
           <mx:Text y="589" text="(The &quot;k&quot; = thousand)" horizontalCenter="-383" fontStyle="italic"/>
           <mx:TextInput y="508" id="hayt" enabled="true" width="76" horizontalCenter="-356" maxChars="15"/>
           <mx:Text text="In case of Emergency Please Notify" fontSize="12" fontWeight="bold" horizontalCenter="-326" y="621"/>
           <mx:Text y="642" text="Name:" fontWeight="bold" horizontalCenter="-370"/>
           <mx:TextInput y="640" id="EName" enabled="true" width="446" horizontalCenter="-125" maxChars="225"/>
           <mx:Text y="668" text="Address:" fontWeight="bold" horizontalCenter="-363"/>
           <mx:TextInput y="666" width="434" id="EAddress" enabled="true" horizontalCenter="-117" maxChars="225"/>
           <mx:Text y="740" text="Endorsement/Signature of PASTOR" fontWeight="bold" fontSize="12" horizontalCenter="-298"/>
           <mx:Text y="740" text="Signature of Member" fontWeight="bold" fontSize="12" width="208" horizontalCenter="55"/>
           <mx:Text y="804" text="Endorsement/Signature of DMS" fontWeight="bold" fontSize="12" horizontalCenter="-310"/>
           <mx:Text y="806" text="Confirmation of the BISHOP/PRESIDENT" fontWeight="bold" fontSize="12" horizontalCenter="88"/>
           <mx:Text y="867.7" text="Reminders" fontSize="15" fontWeight="bold" horizontalCenter="-76"/>
           <mx:Text y="899.25" text="Pastor/CMT shall verify each filled up membership form." fontWeight="bold" textAlign="center" fontSize="12" horizontalCenter="-86"/>
           <mx:Text y="921.8" text="The pastor will endorse the forms to their respective DMS." fontWeight="bold" fontSize="12" textAlign="center" horizontalCenter="-78"/>
           <mx:Text y="942.35" text="The donation for I.D. is 50.00php." fontWeight="bold" textAlign="center" fontSize="12" horizontalCenter="-62"/>
           <mx:Text y="961.9" text="Get your receipts from the DMS as a whole." fontWeight="bold" textAlign="center" fontSize="12" horizontalCenter="-69"/>
           <mx:Text y="980.35" text="Check carefully the neatness of I.D. pictures." fontWeight="bold" fontSize="12" textAlign="center" horizontalCenter="-64"/>
           <mx:Text y="997.9" text="This form is to be completed by all CAMACOP members and workers." fontWeight="bold" fontSize="12" horizontalCenter="-83"/>
           <mx:Spacer x="47" y="9"/>
           <mx:Button y="1034" label="Submit" id="submit" enabled="true" horizontalCenter="-89" click = "sample1.send()"/>
           
           <mx:DateField y="508" id="birthday" enabled="true" horizontalCenter="35" width="122"/>
           <mx:DateField y="534" width="105" id="dateOfBaptism" enabled="true" horizontalCenter="-64"/>
           <mx:RadioButtonGroup id="work"/>
           <mx:RadioButton x="273" y="331" label="Private" groupName="work" width="80" id="prayvate" enabled="true"/>
           <mx:RadioButton x="416" y="331" label="NGO" groupName="work" enabled="true" id="NGO"/>
           <mx:RadioButton x="359" y="331" label="GO" groupName="work" enabled="true" id="GO"/>
           <mx:RadioButtonGroup id="status"/>
           <mx:RadioButton x="133" y="404" label="Married" groupName="status" id="Married"/>
           <mx:RadioButton x="207" y="404" label="Single" groupName="status" id="Single"/>
           <mx:RadioButton x="274" y="404" label="Widow" groupName="status" id="Widow"/>
           <mx:RadioButton x="342" y="404" label="Widower" groupName="status" id="Widower"/>
           
           <mx:HTTPService id="sample1" method="POST" url="http://localhost/frontPage-debug/add.php">
                <mx:request xmlns="">
                     <dateToday>
                          {dateToday.text}
                     </dateToday>
                     <district>
                          {district.text}
                     </district>
                     <nameLocalChurch>
                          {nameLocalChurch.text}
                     </nameLocalChurch>
                     <addressLocalChurch>
                          {addressLocalChurch.text}
                     </addressLocalChurch>
                     <givenName>
                          {givenName.text}
                     </givenName>
                     <posInChurch>
                     {posInChurch.text}
                     </posInChurch>
                     <professionTitle>
                     {professionTitle.text}
                     </professionTitle>
                     <work>
                          {work.text}
                     </work>
                     <giftSkill>
                          {giftSkill.text} <!--THIS IS WHERE THE ERROR HAPPENS-->
                     </giftSkill>
                     <homeAddress>
                          {homeAddress.text}
                     </homeAddress>
                     <status>
                          {status.text} <!--THIS IS WHERE THE ERROR HAPPENS-->
                     </status>
                     <dateOfMarriage>
                          {dateOfMarriage.text}
                     </dateOfMarriage>
                     <cell>
                          {cell.text}
                     </cell>
                     <bloodType>
                          {bloodType.text}
                     </bloodType>
                     <sss>
                          {sss.text}
                     </sss>
                     <weight>
                          {weight.text}
                     </weight>
                     <birthday>
                          {birthday.text}
                     </birthday>
                     <tin>
                          {tin.text}
                     </tin>
                     <dateOfBaptism>
                          {dateOfBaptism.text}
                     </dateOfBaptism>
                     <annualIncome>
                          {annualIncome.text}          
                     </annualIncome>
                     <EName>
                          {EName.text}
                     </EName>
                     <EAddress>
                          {EAddress.text}
                     </EAddress>
                </mx:request>     
                
                
                
                
           </mx:HTTPService>     
           
           
      
      </mx:Application>
      

      This is are the errors
      1119: Access of possibly undefined property text through a reference with static type mx.controls:RadioButtonGroup.  
      1120: Access of undefined property annualIncome.