Radio buttons! Please help!

I'm developing using PHP/MySQL. I've created a form with a userID and a Radio Group with 3 buttons and a Submit button.
I want to populate the database with the info that the user enters but the data coming from the radio button selection is never correctly entered into the database: either all selected to be '1', or all '0', or only one given a value of '1' regardless what the choice was. Plus: how do I get to paste my code and the output here for clarity's sake?!
Thanks

Hi there,
Thanks so much for your response.
I managed to sort out the problem in a round about way. I had to get into the code itself and add a switch statement into the php code. But I really thought Dreamweaver was suppossed to do that sort of stuff for you.
Maybe I'm just really stupid, but I had two other engineers helping out and then I got the code to insert and it finally works.
Regards,

Similar Messages

  • If scritp with Radio button - Please help

    Hi there.
    Please help me.
    in my form I have 4 Radio Buttons:
    1. Married
    2. Single
    3. Divorced
    4. Widowed
    (only one can be checked ... )
    now, there are following 6 input fields regarding the spouse.(like: name, family name etc....)
    im looking for script that all all other 6 fields regarding the spouse will be invisible. BUT if user checked:married, (only Married) all other 6 fields will become,ready for input + required.
    Thanks for your help.
    Please guied me step by spet, as im new with that.

    Have you tried to create 4 radio buttons all with the same name but different "Export" values and observed what happens when you check each button?
    You can see the value of the radio button group if you use the JavaScript console.
    Assuming you have named the radio buttons "Marital Status" then you can use the following code in the JavaScript console to observe the value available to JavaScript:
    this.getField("Marital Status").value;
    The Acrobat JavaScript Console (Your best friend for developing Acrobat JavaScript
    You then need to decide with what action to use to test the value of the radio button group and adjust the fields as needed.
    Since you will be using the same script for all radio buttons, I would suggest using a document level function to manipulate the spouse's fields. I would also use a hierarchical field name for the fields. Prefix all the spouse's field with "Spouse.".
    You then could use the following document level function in the "Mouse Up" action for each of the buttons:
    function CheckMaritalStatus(cStatus) {
    this.resetForm(["Spouse"]);
    this.getField("Spouse").required = false;
    this.getField("Spouse").display = display.hidden;
    this.getField("Spouse").readonly = true;
    if(cStatus == "Married") {
    this.getField("Spouse").required = true;
    this.getField("Spouse").display = display.visible;
    this.getField("Spouse").readonly = false;
    return true;
    You then use the following code for the "Mouse Up" action in each of the Radio Buttons:
    CheckMaritalStatus(this.getField(event.target.name).value);
    Entering Document Scripts

  • Need Help on JSP Radio Buttons please

    How do i create radio buttons on a HTML file to link to other JSPs??
    do i have statements in my HTML that gets a JSP i.e option and then that runs the links to the other pages?
    please help very stuck and confused. Thanks

    Hi ..kinda new to java and jsp , worked with abit ...
    I have a problem have to solve. I have 2 jsp pages..one is for header displays a picture at top and has four radio buttons choices. Then at bottom of window is other jsp this jsp displays the result of whatever is choosen fromt he four buttons at top in the other frame from 1st jsp.
    I kinda have part of answer from your post about onclick. But how do i pass a value from the 1st jsp to the 2nd. jsp. There is some code in the second page that displays certian pages depending on what the value is from the four radio buttons.
    any help much appreciated :)

  • How to create authorisation object for save button please help in abap

    how to create authorisation object for save button please help in abap

    Hi
    In general different users will be given different authorizations based on their role in the orgn.
    We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
    USe SUIM and SU21 T codes for this.
    Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
    If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
    This means you have to allocate an authorization object in the definition of the transaction.
    For example:
    program an AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT <authorization object>
    ID <authority field 1> FIELD <field value 1>.
    ID <authority field 2> FIELD <field value 2>.
    ID <authority-field n> FIELD <field value n>.
    The OBJECT parameter specifies the authorization object.
    The ID parameter specifies an authorization field (in the authorization object).
    The FIELD parameter specifies a value for the authorization field.
    The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
    http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
    To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
    Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
    You program the authorization check using the ABAP statement AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
    ID 'ACTVT' FIELD '02'
    ID 'CUSTTYPE' FIELD 'B'.
    IF SY-SUBRC <> 0.
    MESSAGE E...
    ENDIF.
    'S_TRVL_BKS' is a auth. object
    ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
    The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
    This Authorization concept is somewhat linked with BASIS people.
    As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a  profile and that profile in turn attached to a particular user.
    Take the help of the basis Guy and create and use.
    Regards
    ANJI

  • I downloaded the new version of firefox, now my flash player wont work, the html text box is gone and so is the back and forward buttons. please help??

    I downloaded the new version of firefox, now I cant watch any movies, the html text box is totally gone, and so is the back and forward website buttons, please help? can i just have the old version back?

    Not sure whether for instance you initially had a Yahoo optimised version of Firefox, and have now overwritten it with an official Mozilla version. Although the Mozilla version should NOT add unwanted features, but the Yahoo version may well do.
    If you merely need to find the Yahoo emails page quickly just add it as a bookmark or as a bookmark on the Bookmarks toolbar and make sure that is visible.
    Clicking the star icon on the location bar whilst looking at your emails will bookmark the page.
    * [[How to use bookmarks to save and organize your favorite websites]]
    * [[Bookmarks Toolbar - Display your favorite websites at the top of the Firefox window]]
    I do not use Yahoo myself,and am not sure what add-ons are available. You could search yourself using
    * FirefoxButton -> add-ons
    ** see [[Find and install add-ons to add features to Firefox]]
    ** examples [https://addons.mozilla.org/en-us/firefox/addon/yahoo-toolbar/ yahoo toolbar] & [https://addons.mozilla.org/en-us/firefox/addon/yahoo-mail-notifier/ mail notifier]
    * also look at Yahoo's own information such as http://help.yahoo.com/tutorials/toolbar/cl3/c3_ff_toolbar1.html

  • Radio Buttons - need help

    Hi,
    How can I create radio buttons in JHeadstart 10.1.2.0??? Can anyone point me some examples or tutorials?
    Can anyone help me on this??? This is very important!
    Thanks,
    Atena

    Atena,
    Please use the 10.1.2.2 release. Since that release supports radiogroups out-of-the-box.
    In monitoring this forum we have to set priorities. This means that if a feature is addressed in a higher version we will advise people to upgrade to this version rather then describe how to add this feature in a previous point release. More so because the upgrade to 10.1.2.2. is very easy.
    I hope you understand our position.
    Regards,
    Ton van Kooten
    Oracle JHeadstart Team

  • White screen, not syncing with computer- tried holding buttons please help?

    Please help. The screen of my daughters 4th gen ipod has frozen white. Have tried syncing the frozen ipod with computer but it is not recognised. I have treid holding home and sleep button at the same time but no change. Would be prepared to do a reset but the computer cannot recognise it. Have read various other responses to questions and am currently leaving the batteries to drain. None of this is helped by the fact that my daughter is sobbing about it in my ear! Ahhhhh

    Phil, did you have a hard Saturday night?  The ling you provided is for "regular" iPod, not iOS devises,  You link stated:
    "If you have an iPod touch, see iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows."
    Philly_Phan wrote:
    Have you been here?
    http://support.apple.com/kb/TS1369
    There have been some problems accessing pages on the Apple web site.  If the hyperlink gives you a "We're sorry" message, try again.

  • I just got my mac and well, i made a mistake. i accidentally put my downloads in the trash and forgot about it, i neglected to look at what was in the trash when i pressed the 'empty trash' button. please help me get it back!!!!

    I just got my imc, and well....i made a mistake. i accidentally put my downloads in the trash and forgot about it. when i emptied the trash later i neglected to look what was in the trash before i deleted it adn i cant get it back. please help me!

    Go back to the site(s) from where you got the downloads from & redownload them. 

  • Charger and circle buttons please help

    OK when im trying to listen to a song and my iPod it says to plug it into the charger and i did BUT when i did that it started to make a really loud and wierd clicking sound and when it did this sound the song completely stoped and it does the same thing on my scroll weal without it being charged please help i dont no how to fix this i have tryed resore iPod that didnt work i unpluged the charger and that didnt work so please help me

    Wow, that sounds kinda nasty...
    Well, my guess is that there is something wrong with the hard drive. There is no way to fix the hard drive yourself. If I am correct, you are going to need it to be repaired by an Apple professional.

  • I cannot find the Refresh button; please help me!

    In the new version of Firefox, I absolutely cannot find the "Refresh" button, anywhere.
    Where is it?
    Thanks so much, for your help.

    I still can't find it....I like the old version better :( Please where on the toolbar do you type it? Why can't the buttons just BE there like before?

  • Mute Button - Please Help!

    I constantly hit the mute button whilst on calls with my cheek bone and its driving me mad!?
    My phone case is not affecting the sensor area?
    I was told to press the lock button on the top of the iphone but this just seems to cut people off instantly?
    Please can someone help?

    It sounds like your case is affecting the proximity sensor that would normally shut the screen off.

  • New N Router wont connect to "n radio band" PLEASE HELP

    Hey All,
    So I just got the new N ROuter from Fios.  (P.s.  If you want one, just upgrade to the 35/35 plan and they will offer you it and send a tech to bring it). 
    My problem however is that my laptop which has the Intel(R) Centrino(R) Advanced-N 6230 internal wireless card will only connect to the "g radio band".  Is there some setting I can change on the router or my system?  The whole reason I upgraded was to get my laptops connecting at "n speed". 
    If my internal wireless card isn't compatible is the a known one that does?
    Thanks for any help.  I really appreciate it. 

    I second the check for WPA2. Verizon should not be shipping any N-capable routers (Rev F-I) with anything BUT WPA2-AES security, as any device compliant with the N Standards will fall to G speeds if any other encryption type is used. Unsecured, while not recommended except for testing purposes is the only other mode that will allow N speeds.
    ========
    The first to bring me 1Gbps Fiber for $30/m wins!

  • Ipod Touch not recognized by USB port on my new radio! PLEASE help?!?!?

    Ok, so I just bought a new radio for my car so I can listen to my ipod touch 2nd gen (with the latest 3.0 software) through my speakers. Ok, that's all great, but the problem is that when I connect my ipod touch through the USB port on my new radio, it reads "device error"...
    My radio is an Alpine CDE-102. It does have an AUX input, and I can easily get a cable to fix this problem... but I'm wondering why my ipod touch doesn't show up through the USB?!?! And I don't know how AUX input sounds compared to USB input (probably less quality than the USB...)
    So, can you help me? I've also connected my ipod touch to my xbox 360 and it shows up as a camera - can't play music... all part of the same problem I guess...
    This is a SERIOUSLY annoying problem especially since I just dropped some cash on the new radio which might not even WORK!!! AHHHHH! A problem with the USB cable? Problem with the Ipod? Problem with the stereo? I'm not quite sure what to think...

    That is the ONLY cable that will work with that radio:
    http://www.alpine-usa.com/US-en/products/product.php?model=CDE-102&view=Specs
    From reading the manual for your iPod I'm pretty certain the connector is on the rear of your unit.
    You can connect an Auxiliary cable to the headphone out on your Touch to the AUX in on the radio but you will have to control everything with the iPod and it will not charge.
    The cable is $30, why don't you ask how much they would charge you to install it?

  • New instances of an object with a button - please help

    Hi
    Hope anyone can help with a simple sample/solution.
    Think i seach the entire world !!!
    Want to make fx. 40 instances of an object ( chosen by user ) - in the "old Flash" there was eval();
    - as i remember I could create multiple instances of an object like this:
    int numberOfBikes = 40;
    for (i = 0;i < numberOfBikes;i++){
    newInstanceName = eval("bike"+i) ; // this is my only problem in the world - for now :o(
    Bike newInstanceName = new Bike() ; // newInstanceName translated to example "bike12"
    newInstanceName.moveTheBike(some arguments) ;
    // YEAH - then I had 40 different bikes
    Please - if anyone have a simple solution for that single line of code - 500 lines of complex array coding does not help a newborn !!!

    You are at once on my Buddy list :o)
    Now i have 40 bikes running all over town - looks pretty cool
    This worked in my run method:
              int i;
              int numberOfBikes = 40;
              test bikes[] = new test[numberOfBikes];
              for (i = 0;i < numberOfBikes;i++)
                bikes[i] = new test();
              }This code in my while loop to call the Class method:
              for (i = 0;i < numberOfBikes;i++)
                         bikes.goAhead(gcon, H, V);
    Cool - was a MEGA help !!!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • I am running a video but can not see play/stop button, please help

    I am trying to play a video using firefox. it is playing well but the only problem is that I can not control it because there is no play/stop or puase button. Any suggestion to fix this problem?

    It may help to know what the site is and what the player is that you are using. Try right clicking the picture does that give you any options.
    Try this Firefox video, it should play natively in Firefox5, and have controls both on screen and available from right click
    * on page https://support.mozilla.com/en-US/forums/contributors/707301
    * stream http://blip.tv/file/get/MichaelVerdi-MeetMichelle153.webm
    Oddly when I play that on Firefox 6.0a2, even in safe mode and with plugins disabled it is very bad stop frame with much of the audio missing, even if saved and played from hdd. If play or stream it using standalone VLC player it is good enough for me to notice the camera shake.

  • My iPad 2 , safari missing new page button - please help how to instal it

    I am total novice in using ipad2 . Can some please advice me on how to install missing new button page on safari iPad 2?
    Also sorry it may be daft question ,my old computer crashed and I had to instal iTunes on  a new laptop but how  do I transfer iTunes music onto new laptop?
    It just seem to be suggesting to reinstall the I.e. iPod which would mean that I lose all my music on it....THANK YOU.

    Safari on iOS 5 uses tabbed browsing, not the thumbnail/paged browsing as on previous iOS versions - to open a new tab tap the '+' to the right of the tab bar, and to close the current tab tap the 'x' on its left-hand end (you can't close the last tab).
    In terms of your music, then if you haven't got a backup of your library which you can copy onto your computer, then you should be able to copy your iTunes purchases from the iPad to your computer's iTunes via File > Transfer Purchases. For music bought from other sources or copied from your own CDs you will need to find a third-party program that can copy them off.

Maybe you are looking for

  • Illustrator CS5 arrow exported in svg 1.1

    Hi all, it looks to me that an arrow created in Illustrator CS5 and exported in a svg 1.1 file is later recognized as a stroke+triangle (two disconnected objects). It just want to make sure that I did not miss anything. The option "preserve Illustrat

  • Table storing the descriptions of Bex Queries

    Hi Experts,                 Can you pl give me the table name which stores the descriptions of Bex Quries in BI 7.0. Thanks & Regards :: Balaji T

  • Can't pair iphone & ipad

    I can't seem to pair my iphone & ipad via bluetooth since the ios 7 update. I tried turning both devices on and off and even clicked on "forget this device and now the ipad just sits there saying "connecting". Not sure what to do. ?

  • Release Request no

    WHAT R THE POINTS WE HAVE TO REMBEMBER BEFORE RELESING THE REQUEST NUMBER.PLESE HELP Moderator message: please read: [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] [Asking Good Questions in the Forums to get Good An

  • INNER JOIN, OUTER JOIN

    Isn't the inner join and outer join clauses used on oracle? Why not if it's possible?