Radio button data to php form

I set up a survey, and I need the info from the radio button
groups to send to a php form that will email me the results. So far
I have not been able to get it to work. All I have so far is the
code below attached to the submit button. I had a working contact
form that I am trying to add radio buttons to, but they do not pass
their info like the input text boxs do. I am a beginner with
actionscript so I am having trouble finding where to get this to
work. I have all my peramiters set on each radio button too. I just
do not know what script to add to what I have so it will pass the
data over to the php form.
I have the survey as one MC which is inside a scroll pane if
that matters. What I have so far can be seen here.
http://ebinx.com/carrand/freestuffswf.swf
Thanks

bump

Similar Messages

  • Inserting Radio Button Data

    I am not able to get <cfinsert> to work to insert into a remote DB2 database.  I have been able to get cfquery INSERT's to insert into the DB2 database.  I have not been able to get radio button data to INSERT into this database.
    This is what I have tried:
    surveyForm.cfm:
    <html>
    <head>
    <title>Survey Form</title>
    </head>
    <body>
    <h2>Enter a Survey Form</h2>
    <cfform action="surveyAction.cfm" method="post">
    Branch:
    <cfinput type="text" name="BRANCH" size="4" maxlength="4"><br><br>
    Contact Name:
    <cfinput type="text" name="CONTACT_NAME" size="40" maxlength="40"><br><br>
    Did you get what you needed today? &nbsp
    <cfinput type="radio" name="NEED_FLAG" id="radio" value="Y">Yes
    <cfinput type="radio" name="NEED_FLAG" id="radio" value="N">No
    <cfinput type="radio" name="NEED_FLAG" id="radio" value="X">Did Not Answer<br><br>
    <br><br>
    <input type="Submit" value="Submit"> <input type="Reset"
    value="Clear Form"></td>
    </cfform>
    </body>
    </html>
    surveyAction.cfm:
    <html>
    <head> <title>Insert Survey Form</title> </head>
    <body>
    <!--- This works until I add the radio button to the insert --->
    <!--- Insert the new record --->
    <cfquery datasource="AXMISC_SURVEY">
       INSERT INTO SURVEY.CAF_SURVEY
       (BRANCH, CONTACT_NAME, NEED_FLAG)
       VALUES
       ( <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.BRANCH#">,
      <cfqueryparam cfsqltype="cf_sql_char" value="#form.CONTACT_NAME#">
         <cfqueryparam cfsqltype="cf_sql_char" value="#form.NEED_FLAG#">
    </cfquery>
    </body>
    </html>
    Thanks,
    Jeanne

    zer0Weaver wrote:
    <!--- This works until I add the radio button to the insert --->
    <!--- Insert the new record --->
    <cfquery datasource="AXMISC_SURVEY">
       INSERT INTO SURVEY.CAF_SURVEY
       (BRANCH, CONTACT_NAME, NEED_FLAG)
       VALUES
       ( <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.BRANCH#">,
      <cfqueryparam cfsqltype="cf_sql_char" value="#form.CONTACT_NAME#">
         <cfqueryparam cfsqltype="cf_sql_char" value="#form.NEED_FLAG#">
    </cfquery>
    </body>
    </html>
    Hi Jeanne,
    Thanks for posting the relevant information, but you forgot to mention what _is_ happening  now ;-)  Does an error occur, and if so  what is the error message, etcetera.. ? But my guess would be you are missing a comma in the VALUES (...) clause:
    VALUES
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.BRANCH#">      ,
    <cfqueryparam cfsqltype="cf_sql_char" value="#form.CONTACT_NAME#">   ,  <!--- should be a comma here --->
    <cfqueryparam cfsqltype="cf_sql_char" value="#form.NEED_FLAG#">

  • Radio Button Data

    I'm putting together a form that I want to contain a group of
    radio buttons. When the form is submitted I want the selected radio
    button to have a value of 1 while all other buttons have a value of
    zero. I am only finding a selectedValue property which won't give
    me anything for the non-selected buttons (at least I don't think it
    will). Any suggestions on how to approach this?

    Hi,
    Please try using getRadioButtonAt function, numRadioButtons
    and selection properties of RadioButtonGroup together to solve the
    problem.
    Hope this helps.

  • Radio Buttons for Flash PHP email.

    Hi.
    I need to add a sign-up form for services to a flash AS2 web site.
    I found a very simple example of a Flash/ PHP email form at Kirupa.
    It works fine, but I need to add some radio buttons.
    My web site will offer various services.
    Ideally I would like to be able for viewers to sign up for a service by clicking the appropriate right radio buttons
    F.ex;
    •   Service 1
    •   Service 2
    •   Service 3
    •   Service 4
    The email should reflect the choices made by listing the text on the selected services (radio buttons).
    Please download the FLA and the PHP file (at the bottom of the tutorial) here:
    http://www.kirupa.com/developer/actionscript/flash_php_email.htm
    I have uploaded a working version here:
    http://gggraphic.com/flash_mail/simple_flash_mail.php
    How do I add and script the radio buttons with both AS and the PHP to make it happen?
    Thank you on beforehand for your help
    ggaarde

    Hi Again
    Maybe check buttons would be a more natural option for this. You should be able to select more than one service.
    Thanks
    ggaarde

  • Radio button getting unchecked when form in query mode

    There are 4 radio buttons on my form.Initially when the form is opened one radio button is checked.But when the form is in query mode that radio button got unchecked.Is there any way that the initial checked radio button remains checked even the form is in query mode ?
    Message was edited by:
    user496853

    Hi,
    Solutions given by Kevin and Zaibiman is not applicable for my form as the radio button will be in data base block only.This is the requirement of the form.
    The other solution given by Zaibiman was to set the radio button item when entered in query mode , i have tried that but that is also not working.
    Pranati,the solution given by you i have also tried that ,but that has not solved the issue,Radio button get unchecked when eneterd in query mode.
    Please elaborate and suggest.
    Thanks,
    Kirti

  • Retrieve radio button data from database

    Hello,
    I have a website developed using html, jsp and connected to an oracle database. I have a registration form namely registation.jsp where i have a set of radio buttons. Then I have a duplicate of that form namely registration_edit.jsp which I have named an edit one as all data which i have put on my registration will appear on the edit one where a person can edit his data. The problem is that only the radio buttons and checkboxes i am not able to retrieve their values from the registation.jsp to the registration_edit.jsp. Can u please give the codes for the radio buttons and check boxes? below i am copying some of the codes of my registration_edit.jsp for you to get an idea of what i want.
    Thank you and if u could plz give an urgent response as i need to submit my project.
    For radio buttons:
    <td valign="middle"><input name="biztype" checked="checked" type="radio" id="biztype3" onclick="checko();" value="corporate" />
                    <span class="TXT"> </span> Corporate/Limited</td>
                <td valign="middle"><input name="biztype" checked="checked" type="radio" id="radio2" onclick="checko();" value="partnership" />
      Partnership</td>
                <td valign="middle"><input name="biztype" checked="checked" type="radio" id="biztype1" onclick="checko();" value="other"/>
      Other
        <input name="biztypeo" type="text" disabled="disabled" id="biztypeo" value="<%=biztypeo%>" size="30" maxlength="20"/></td>For check boxes:
    <td width="273" valign="middle" class="style4"><font face="Verdana, Arial, Helvetica, sans-serif">
                  <input name="work1" type="checkbox" id="work1" value="Air conditioning installations" />
                  <font size="2">Air conditioning installations</font></font></td>
                <td width="252" valign="middle" class="style4"><font face="Verdana, Arial, Helvetica, sans-serif">
                  <input name="work2" type="checkbox" id="work2" value="Asphalt paving" />
                  <font size="2">Asphalt paving</font></font></td>
                <td width="277" valign="middle" class="style4"><font face="Verdana, Arial, Helvetica, sans-serif">
                  <input name="work3" type="checkbox" id="work3" value="Cable installation" />
                  <font size="2">Cable installation</font></font></td>Edited by: user4555860 on Jul 8, 2009 11:20 PM

    Mohammed Taj wrote:
    Superb. I never seen this of of urgent query :)
    Thanks
    Regards,
    TajMee too Taj :)
    @OP - It general Database topic. Please post your question unde correct topic to get an answer. Find the related topic from below link:
    http://forums.oracle.com/forums/main.jspa?categoryID=84
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]
    Edited by: Kamran Agayev A. on Jul 9, 2009 11:21 AM

  • How do I make a radio button choice on a form stand out more?

    I have created a form with lots of square radio buttons. I would like the user's choices stand out more on the form. Right now all I get is a small square black dot in the middle of a white square. Is there a way to fill the whole square in, or better yet, have a check mark (like in a checked box) instead of the small square black dot? I am using Acrobat X Pro.

    You can change the size of the box to get a larger button, and of course
    you change the style of the check-mark by editing Properties - Options -
    Button Style.

  • Radio button selection showing panel form

    Hi
    I am using ADf
    using jdev 10.1.3.
    I am having table with radio button aside to that.My requirment is - when i am selecting radio button , panel form should be displayed.
    I changed autosubmit property of radio button to true.
    i have written ontableSelectionChanged method. and put this in selection listener of table.
    please let me know what else i needed to done.
    thanks in advance

    Hi,
    I assume that the radio buttons you mean is the singleTableSelect component. If you set this component to autosubmit=true then the table ets a selection notification for each row selection change. This can be listened for in a selection listener. In this listener you can then choose the panelForm component (that you set up to have its binding attribute pointing to a reference property in teh managed bean the listener is defined in) and set its rendered property to true. In a last step, you get access to teh parent container, the layout component that is the parent of the panelForm, - also through a binding reference - and call
    AdfFacesContext.getCurrentInstance().addPartialTarget(<parent component reference>);
    Frank

  • Radio Button Data Binding

    Hi All,
    I am a vb beginner and I was wondering how you bind a radio button to a field in a database that has choice of 2 values. For example the field in my db is CoverType and the user should be able to select Hardcover or Paperback.
    Don't seem to be able to do get radio buttons to represent this on my form.
    Thanks very much 

    Hi Colin,
    I'm having the same trouble, and although I work in 'Classic' HTML & Vb this might be useful for you.
    I found that with Radio Buttons, you can bind each one in a group to the same DataSrc & DataFld.  Since all the Radios have the same Name and ID they switch between as usual, however, each radio has a different Value which is updated into the XML.
    <xml ID=ERRI>  
    <ROOT> 
    <RATE> 
    <RATE1></RATE1>  
    </RATE> 
    </ROOT> 
    </xml> 
    <Table DataSrc=#ERRI DataFld=RATE>  
    <tr><Td colspan=5><b>Rate This</b></td></tr> 
    <Tr><Td><Input DataSrc=#ERRI DataFld=RATE.RATE1 Value="1" Type=Radio id=Radio1 name=Radio1></Td><td>1</td></Tr>  
    <Tr><Td><Input DataSrc=#ERRI DataFld=RATE.RATE1 Value="2" Type=Radio id=Radio1 name=Radio1></Td><td>2</td></Tr>  
    <Tr><Td><Input DataSrc=#ERRI DataFld=RATE.RATE1 Value="3" Type=Radio id=Radio1 name=Radio1></Td><td>3</td></Tr>  
    <Tr><Td><Input DataSrc=#ERRI DataFld=RATE.RATE1 Value="4" Type=Radio id=Radio1 name=Radio1></Td><td>4</td></Tr>  
    </Table> 

  • How to detect which radio button is selected in Forms?

    I created a Form with two radio buttons, one for Male and one for Female.
    I created a Push Button with WHEN-BUTTON-PRESSED to display the selected radio button as a DIsplay Item on the same Form.
    Can any one give me some hints?
    (0) Male
    ( ) Female
    [Submit]
    When the [Submit] button is pressed, I would like to display:
    You are a man. (if Radio button selected is Male)
    You are a woman (if Radio button selected is Female)

    create item RG with property record group in block2
    add two button in this group (rg1 and rg2)
    assign value to above two buttons
    rg1 M (Male)
    rg2 F (Female)
    assign initial value to RG Say M
    You can use this item as :block2.RG in Save Button.

  • How to uncheck all radio buttons in WHEN-NEW-FORM-INSTANCE trigger

    Hi,
    I have one radio group(RDBTNGRP) having three radio buttons (RDBTN1,RDBTN2,RDBTN3) in a control block, i want to uncheck all these three buttons through code.
    Any help please.
    Regards,

    Hello,
    I don't think you can achieve using the code or property to unselect all radio buttons.
    One possibility is there to create one extra radio button in that same group and set any value for that. Let say you have two radio buttons in the radio group and now you created one more radio button in the same group. And set the value like ABC. Now go to the property of new created radio button and set the X Position, Y Position, Width and Height to zero (0). And set the initial value for that radio group to ABC (new created radio button). So at runtime it will look like unselected all radio buttons. And while saving you can check if radio button selected on your criteria or not.
    -Ammad

  • Tagging Radio Buttons to paragraphs in Form

    I have Adobe LiveCycle and I am trying to show a specific paragraph when the "Yes" button is chosen and another different paragraph when the "No" button is chosen.
    Is there a way to do this?

    If you use check box life will be easy.....<br /><br />Here is what I would use if both the checkbox and the paragraphs are on the same level on the object hierarchy.<br /><br />for Yes Check Box: On click event: JS:<br />if (this.rawValue == 1) {<br />   this.parent.<checkBoxNO>.rawValue = 0;<br />   this.parent.<ParaYes>.presence = "visible";<br />}else {<br />   this.parent.<ParaYes>.presence = "hidden";<br />}<br /><br />for No Check Box: On click event: JS:<br />if (this.rawValue == 1) {<br />   this.parent.<checkBoxYes>.rawValue = 0;<br />   this.parent.<ParaNO>.presence = "visible";<br />}else {<br />   this.parent.<ParaNO>.presence = "hidden";<br />}

  • Radio buttons and PHP

    I am having a problem getting radio button data into php and I can not seem to find any answers. My project is simple I have a group of radio buttons, when one is selected and a submit button is pressed I want the data from the radio button to populate the subject line of an email and send it. It sounds simple but I am having a lot of problems figuring it out and would appreciate any help I can get. I am good (not great) with flash, ok with PHP but for some reason this is taking a long time to fugure out. I can make a form work with input fields but not with radio button data.

    Use variables, not the text field var option from the Properties panel... not a reliable resource.  Give the textfield an instance name and use its text property to assign the value to a variable.
    I haven't dealt with AS2 to PHP much, but are you using the LoadVars class to manage getting the data to the PHP file?  I think the send() or sendAndLoad() methods are what you want to use.
    If you search Google using "AS2 LoadVars" you are likely to find a number of helpful tutorials, including those that focus on PHP being in the picture.

  • Forms 5.0 - Radio button problem

    In Forms 5.0,I have created a entry screen which consists a
    radiogroup with 2 radio buttons. In new-form-instance trigger, I
    have written
    execute_query ;
    last_record;
    It shows me the last record but it shows my radio group with no
    button selected.
    If I go back to the previous record, it shows me the record with
    one of the radio button selected.
    My question is why it does not show radio button selected when my
    when-new-form-instance trigger fires ?
    null

    Hi Shamshad,
    Please check the property sheet of the radio button, I remember
    there is a option for specifying the value for a selected radio
    button. I had worked with Oracle 4.5 some time ago but not with
    version 5, so please correct me if there is no option of doing
    so.
    Krishna
    Shamsad Khan (guest) wrote:
    : In Forms 5.0,I have created a entry screen which consists a
    : radiogroup with 2 radio buttons. In new-form-instance trigger,
    I
    : have written
    : execute_query ;
    : last_record;
    : It shows me the last record but it shows my radio group with
    no
    : button selected.
    : If I go back to the previous record, it shows me the record
    with
    : one of the radio button selected.
    : My question is why it does not show radio button selected when
    my
    : when-new-form-instance trigger fires ?
    null

  • Why are my radio buttons not renaming in pages spawned from a hidden template?

    Hi Everyone,
    I am new to PDF forms, and have never before tried to use JavaScripts. However, I have been able to learn a lot and I have followed many threads and have almost accomplished what I want, but have hit a block. I don't understand the JavaScript well enough to locate my problem. Your help is greatly appreciated.
    SYSTEM SPECS: Adobe Acrobat X Pro  Mac OS 10.8.5
    WHAT I WANT: To create a multi-page (100 pages) form for grading student assignments. Each page must have the same fields, but as each page belongs to a new student, it needs to have different values in the fields on different pages. Each page has 4 questions to score, with 4 score possibilities for each question (0, 1, 2, 3 points), and so only one score should be able to be selected per question.
    WHAT I HAVE DONE, following the directions on this thread (Re: Multiple pages form) ):
    1) Created a form with a field for student name and 4 sets of radio buttons (Labeled Questions 1-4, with score choices 0-3).
    2) Placed a button at the bottom of the page that will spawn a new page and rename fields.
    3) Defined this page as a template.
    4) Spawned a page.
    5) Made the template "hidden."
    THE PROBLEM: Steps 1-4 above work perfectly--as long as the template (named "Form") is visible, when I click the button, a new page generates and the student name field renames the fields on Page 2 to "P2.Form.Student ID #" and the radio buttons rename to "P2.Form.Question 1" etc. Each time I press the button, it renames everything appropriately.
    However, if I hide the template, then when I click the button on page 1, the fields on Page 2 are renamed to "P1.Form.StudentID ##1." AND THE RADIO BUTTONS DO NOT RENAME. They get the name "P1.Form.Question 1" etc. So the student name field did rename in a way that allows me to enter a new name on each page, but it isn't actually reflecting that I am on page 2, and as for the radio buttons, at that point, I cannot enter different scores on different pages because they are all part of the same radio button grouping.
    If I use check boxes, they rename similarly to the student ID field, but I don't want to use check boxes because I want to return one possible score value for each question for tabulating the data. I don't want to leave the template visible because when I distribute this form to other graders, they may enter values into the template page without realizing it, and then when the spawn forms they will have wrong data already entered.
    Here is the script that I have set as the button's Mouse Up script:
    // Specify the name of the template
    var template_name = "Form";
    // Get a reference to the template
    var t = getTemplate(template_name);
    // Add a new page based on the template
    if (t !== null) {
        t.spawn({
        nPage: numPages,      // Add the new page to end of document
        bOverlay: false,      // Create a new page, not an overlay
        bRename: true         // Rename the fields
    } else {
       app.alert("The template named \'" + template_name + " does not exist in this document.", 1);
    Thanks for your help

    Hi again GKaiseril,
    If you have the time, would you be able to tell me how to do that? I tried just changing the page number of the template page to zero, but I get the error "Please enter a starting value of at least 1."  I definitely noticed that all of the discussions about similar subject do all say to somehow put the first page of the form before the template and then hide the template, but I don't think that I know how to do that. I read your response on this discussion "Re: Self replicating form pages in Acrobat Pro 9 (Win XP)" before I ever started this discussion, but have to admit that I can't figure out how to follow your advice "When I create a from that uses a template, I create the template and then spawn the 1st page of the form before the template and then work out the scripting for the 1st page and template and then hide the template."
    Thanks

Maybe you are looking for