Radio button in the PHP form

Hello

I would like to change an existing list to a radio on my pho form option.
http://Opie.monkeyshrine.com/contact/contactus.php

Of this

< select name = "reason" = value "<?" PHP if (isset($_POST['reason'])) echo htmlentities($_POST['reason']);? ">" tabindex = "4" size = "1" id = "right" >
< option selected > tell us why < / option >
< option value = "Beijing to Moscow" > Beijing in Moscow < / option >
< option value = "Moscow to Beijing" > Moscow to Beijing < / option >
< option value = "Vladivostok to Moscow" > Vladivostok to Moscow < / option >
< option value = "Beijing in Beijing" > Beijing in Beijing < / option >
< option value = 'Only Mongolia' > only Mongolia < / option >
< option value = "Options Direct Tranzip" > Options Direct Tranzip < / option >
< option value = "Another reason" > another reason < / option >
< / select >

TO

< input type = "radio" name = 'trip' value = "<?" PHP if (isset($_POST['BM'])) echo htmlentities($_POST['BM']);? ">" / > Beijing in Moscow < / label >
< br / >
< label >
< input type = "radio" name = 'trip' value = "<?" PHP if (isset($_POST['VM'])) echo htmlentities($_POST['VM']);? ">" / > Vladivostok to Moscow < / label >
< br / >
< label >
< input type = "radio" name = 'trip' value = "<?" PHP if (isset($_POST['MB'])) echo htmlentities($_POST['MB']);? ">" / > Moscow to Beijing < / label >
< br / >
< label >
< input type = "radio" name = 'trip' value = "<?" PHP if (isset($_POST['BB'])) echo htmlentities($_POST['BB']);? ">" / > In Beijing Beijing < / label >
< br / >
< label >
< input type = "radio" name = 'trip' value = "<?" PHP if (isset($_POST['Mongolia'])) echo htmlentities($_POST['Mongolia']);? ">" / > Mongolia only < / label >
< br / >
< label >
< input type = "radio" name = 'trip' value = "<?" PHP if (isset($_POST['Direct'])) echo htmlentities($_POST['Direct']);? ">" / > Options Direct Tranzip < / label >
< br / >
< label >
< input type = "radio" name = 'trip' value = "<?" PHP if (isset($_POST['unsure'])) echo htmlentities($_POST['unsure']);? ">" / >
Not sure

except, that I made the wrong group radio and is not insert anything on the answer.

This is the postal code for php

$Indhold. = "Type of trip:". " $_POST ['journey']. » \n » ;
$Indhold. = « \r » ;
$Indhold. = "why:". " $_POST ['reason']. » \n » ;
$Indhold. = « \r » ;

Please help me correct the radio button group.
Thank you.

PS. can you also confirm that the local time display your local time?

yesmaybe wrote:
>Beijing-
> Moscow

This will be only to insert a value in the option button if the form has
already been submitted * and * $_POST ['BM'] contains a value. You do not have
need a PHP code in the radio group itself unless you do
validation server side of the form. It must be:

Or that (if you validate on the server side):

--
David powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/

Tags: Dreamweaver

Similar Questions

  • Radio buttons in the contact form

    Hi all

    I was wondering if anyone could shed some light on this issue, I'll have. I have a contact form with 5 boxes marked:
    mr_rb
    mrs_rb
    ms_rb
    dr_rb
    other_rb

    Next to the other radio button, I have a textInput fields other_txt. I'm writing some ActionScript when loading the form the the other_txt is hidden or disabled. When the user click on the radio button other_rb the other_txt appears then or become activated with emphasis that it so that the user can start typing right away.

    I would be very grateful if someone could help with this code as it's really starting to annoy me.

    Thanks in advance

    Hi Dave,.

    Try this

    Dazfaz

  • RadioGroup, radio buttons in the criteria of cursor

    With the help of FORMS 10.1.2.0.2

    I have radiogroup with about 15 radio buttons. The value of the value of radio buttons can be alphanumeric - 100, 200, A200, B200, etc..

    I have a cursor on a button pulled the trigger. The cursor will query the table of data I need based on a few criteria (in the where clause). I need one of the criteria to the value of the option buttons.

    I tried
    where xyz = ':control.abc_radiogroup'
    or 
    where xyz =:control.abc_radiogroup
    or 
    where xyz =':control.abc_radiogroup.value'
    and all return 0 records.

    EDIT:

    but, static
    where xyz = 'A200'
    works perfectly.

    So, my question is how to get the value of the radio button to my cursor criteria?

    Thank you.

    Published by: apex_disco on November 16, 2011 09:59

    If it works:

    where xyz = "A200"

    so I can only imagine that your radio button does not have the same value. Maybe a space end or something?
    It works when you select A200?

    for r in (
      select 'A200' value
      from dual
      where :control.abc_radiogroup = 'A200'
      ) loop
      message('Result: '||r.value);
    end loop;  
    

    If so, it must be something else in your select statement which causes no records to retrieve. What the statement is complete?

    You have a trigger when Radio change which also changes some values used in the cursor?

    Published by: InoL on November 16, 2011 15:51

  • How LabVIEW can press a command button in the Access form?

    Situation: access database with a command button, which generate code after you have pressed

    Task: LabVIEW open the access database, you press the command button and read the code

    Status:

    • Use activeX to open data access - ready
    • Press the control button - open
    • code - open reading

    Problem: is there a possibility that LabVIEW automatically press the button in the Access form?

    Dear Mike,
    Thanks for the reply. You are right that MS Access is not really a database. ;-)

    When the operator will push the button, the program generates a serial number and add the new number in the article table.
    Therefore, by pushing the button means process this code.

    Solution
    After that I became the password to unlock the database, I have check the code behind the button and build it with LabVIEW.

    So it is not necessary to press the button :-)

  • radio buttons for the front end

    OK, so Im new to LabView and tried to create a user interface for several calibration process.  I tried to use radio buttons for the system is selected (only two options) and depending on whether you chose the resulting calibration procedures that would be system can be chosen when other options are grayed out and disabled.  I got the program so that the first selection process would work, but if you click on the case by default, it automatically goes to the default selection. Any help would be appreciated

    I think what you really want is to set the properties in the event of security system. See attachment.

    Note also that this is a loss for the duplicate items (for example property nodes and diagram constants) in all cases of a box structure. Everything is in any case belongs outside the structure of the case. One necessary instance.

  • Radio buttons on the same line

    Hi all

    Somebody kwons how to set the radio buttons on the same line? I use the Application Express 3.0.1.00.07.

    TKS,
    Eric

    Hello

    Edit your article.
    List box of values you have the attribute columns
    >
    Apply to checkboxes and radio groups. Sets the number of columns to use to display values defined in the list of values. By default, all values appear in a column.
    >
    http://download.Oracle.com/docs/CD/B32472_01/doc/AppDev.300/b32471/UI.htm#BABDGJFI

    Kind regards
    Jari

  • How to add radio buttons to the form

    Hello

    I want to add option buttons to the form.

    I wrote the following code:

    Rbg RadioButtonGroup = new RadioButtonGroup();

    RadioButtonField r1 = new RadioButtonField ("first option button");

    RadioButtonField r2 = new RadioButtonField ("second radio button");

    RadioButtonField r3 = new RadioButtonField ("third option button");

    RBG. Add (R1);

    RBG. Add (R2);

    RBG. Add (R3);

    mainScreen. Add (RBG);

    When I run this, I get uncaughException.

    I am doing wrong?

    can someone help me please.

    Thank you

    Maury.

    On the screen, we can add that the fields. RadiButton group will hold all Radiobutton Fields.

     RadioButtonGroup rbg = new RadioButtonGroup();
            RadioButtonField r1 = new RadioButtonField("first radio button");
    
            RadioButtonField r2 = new RadioButtonField("second radio button");
    
            RadioButtonField r3 = new RadioButtonField("third radio button");
            rbg.add(r1);
            rbg.add(r2);
            rbg.add(r3);
            add(r1);
            add(r2);
            add(r3);
    
  • The award of radio buttons to the signatories Echosign.

    I have a form of EchoSign, which must be completed by the signer1, but cannot be modified by the subsequent signatories. I put all the fields must be attributed to the signer1, but the default value of "Anyone", radio buttons and I can not change this setting.

    Hello Paula3869,

    You can assign the specific role of radio buttons according to the signer by double clicking on it and selecting role as E-sign of Signer1, 2 as needed. Here is the link for reference:

    https://helpx.Adobe.com/content/help/en/document-cloud/help/field-roles.html

    Kind regards

    -Usman

  • Group of radio buttons with the URL of image in a table

    I try to display text and an image for a group of radio buttons to make the form look like

    text (*) for point 1 {image for point 1}

    text () for article 2 item 2 {image}

    text () to the point 3 {image for point 3}

    I found these:

    Re: Is it possible to display an image instead of the button in a group of radio buttons?

    Display image in the Group of radio buttons?

    It looks like all I have to do is create a LOV that looks like:

    SELECT {complex stuff that generates the text string, tag img and image URL}

    DB_PK

    OF dynamic_view_for_lov - public synonym

    But my images are stored in a table.

    I was able to create an IR using the "= BLOB column Format" method.

    The SQL code for the report looks like:

    Select

    display_text, db_pk, image_len, image_clob

    of dynamic_view_for_lov - public synonym

    And the IMAGE_LEN column number/Date Format is:

    IMAGE: DYNAMIC_VIEW_FOR_LOV:IMAGE_BLOB:DB_PK:Inline:Download

    My question: how to create the URL for the tag img for the LOV?

    Thank you very much

    MK

    MikeKutz wrote:

    My question: how to create the URL for the tag img for the LOV?

    Use of the apex_util.get_blob_file_src method of the API.

  • Is it possible to add a 'Call' button for the contact form in the mobile layout? How?

    I want to add a 'call' button to my contact form that will automatically appear in the Dialer of the person ready to call the phone number. Possible? And how to set up? Thank you.

    Just type the phone number in the control of hyperlink (without punctuation or spaces) and Muse will do the rest.

  • How to disable the radio button to the page

    Hi all
    We have a requirement to disable or hide a button on the standard page Noritifacation reassign in R12.
    The page is/oracle/apps/fnd/wf/worklist/webui/NotifReassignPG.
    When I went to 'Customize Page', I see a "messageComponentLayout", when I put the property "Rendering" to "false".
    He hides the complete available, but I want to just hide only a single radio button in this provision.
    Can someone please?

    Thank you
    Dilip

    Dilip salvation,

    When you click on the link of customization on the OPS page, you can click on full view to display all possible customizations
    This can be done.

    Expand the full view and see if you can find the option button that you want to hide.

    If you are not able to find it, then you can try using controller extension (extension of CO)

    Enter the bean of your controller class processRequest() radio button and hide.

    The extension of controller code-sharing:

    {
    OAMessageRadioButtonBean testButton = (OAMessageRadioButtonBean) webBean.findChildRecursive ("RadioBttn1"); RadioBttn1 is the ID of RadioButton
    testButton .setDisabled (true);

    }

    Kind regards
    Had

  • By selecting the radio button makes the required field

    (Actually two similar questions but...)

    • I have a set of option buttons.  When the 'B' button is selected, I need the field text "T" to become "required".  If the user changes her mind and chooses another button or the form is reset to the "T" field does not show being "necessary".
    • The form also has a set of check boxes that, once again, when 'C' is checked, I need 'F' text field to become "mandatory" (or not if the box is unchecked).

    Help with the script for these is appreciated.

    Oh! It's a bit simpler:

    Custom calculation script

    Event.Target.Required = getField("radio1").valueAsString = 'B ';.

  • How can we have a column with the text and radio button in the same row?

    Hello

    I have a column that need to have data with a radio button. Has been able to achieve this by using < trh:tableLayout >. But when I select the option button it moves to the next line. You want to stop this behavior of option button to move to the next line. This column also includes a hyperlink. If the text and the hyperlink are made invisible visible based on the action of the radio button.
    Adding one more doubt. A horizontalgrid of specific columns can make invisible?
    Any help would be appreciated.

    example code:
    < trh:cellFormat id = "cf8" halign = 'Start' >
    < af:activeOutputText value = "#{rank." Actions}"id ="aot2"/ >
    < af:goLink text = ' #{rank. " Actions}"id ="gl1 ".
    clientComponent = "true" visible = "false".
    targetFrame = "_blank" destination = "http:// + #{rank." BUTTON_URL} ">"
    < / af:goLink >
    < af:selectBooleanRadio text = "" id = "sbr1" > "
    < af:clientListener method = "selectCheckBox" type = "click on" / >
    < / af:selectBooleanRadio >
    < / trh:cellFormat >

    Thank you
    Nita

    Remove the components from . Put the other components like the direct children of the PanelGroupLayout:

    
      
        
        
        
        
          
        
      
    
    

    If you need to add some space between the components horizontan, you can put (s) between components.

    Dimitar

  • Radio buttons and the theme of the ceremony

    This is in AS2.

    Is there an event "onFocus" for individual or is radio buttons it limited to the radiobutton group?

    If there is an event of development for the buttons, how to I set up?  I've set up an event listener with an event 'onFocus', the 'gotFocus"event, the 'focus' event and nothing does not fire...

    Kind regards

    Rich

    If you look through the help documents, all of the events associated with the radio button class are listed.  There is an event focusIn inherit from the UIComponent class with the option button.  Here is an example to use it...

    var listenerObject:Object = new Object();
    listenerObject.focusIn = {function (eventObj:Object)}
    trace ("radiobutton1 just focus");
    };
    RadioButton1.addEventListener ("focusIn", listenerObject);

  • Radio button of the available text fields

    I have Radio buttons affect you yes and no, I want to make sure if yes is selected the three text fields are available and necessary, but if none is selected then three fields are not available.

    Help, please.

    Place the following code in the MouseUp event of two radio buttons. This code assumes that the value of the key to Yes is 'Yes' and text fields named 'text1', 'text2' and 'Text3 '. Change depending on your situation. If the Yes button is not selected, the text fields are hidden and their values are reset. If so, the fields are displayed.

    You really should put the function as a function called in a JavaScript script at the level of the document and call it from events MouseUp, but you should get the idea.

    (function () {}

    An array of names of fields for text fields
    var f_names is ['text1', 'text2', 'Text3'];.
    var i, f, disp, bReset;

    Whether to show or hide fields
    and to restore or not
    If (event.target.value = 'Yes') {}
    DISP = display.visible;
    bReset = false;
    } else {/ / no is selected}
    DISP = display.hidden;
    bReset = true;
    }

    Show/hide the text fields and reset if indicated
    for (i = 0; i< f_names.length;="" i="" +="1)">
    f = getField (f_names [i]);
    f.Display = disp;
    If (bReset) f.value = f.defaultValue;
    }

    })();

Maybe you are looking for

  • Satellite A210-S14 - FN keys does not work on Windows XP

    Hello Please excuse my bad English-school ;) I bought a laptop A210-S14 and it downgraded to Windows XP, because I own the components that are not running on Windows Vista. The XP installation went very well, I found drivers as appropriate for each c

  • Search for the control named ni845xcontrol.ctl

    Hello I'm kinda new to LabVIEW and I have some difficulty to load a particular VI. I was looking through the forums and found some old posts as soon as 2012, here the link: http://forums.NI.com/T5/LabVIEW/8451-I2C-loop-running-slowly-when-reading-dat

  • Use a button to SWITCH program

    Hello forum,. I have an once executed program, asked he like username, then monitors 4 individual entries. When you press the STOP button, the file is saved. This part of the code works well. I am trying to modify the code, so instead of ask the user

  • My usb card reader is not get recognized by my computer more help?

    I was able to download pictures for 2 weeks then a pop all came as I was pressing on enter and all I took was "this port is full... and then I couldn't download and more pictures, I tried change the letter of the disk but cannot me volume is full, sa

  • How to schedule defragmentation when the next next sched defrag NEVER shows

    even if I set the defragmentation schedule, it shows always NEVER at the next scheduled time. How do change you that?