Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Radio buttons! Please help!

Guest
Apr 30, 2010 Apr 30, 2010

Copy link to clipboard

Copied

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

TOPICS
Server side applications

Views

490
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 04, 2010 May 04, 2010

Copy link to clipboard

Copied

Have u already assign the value for each radio button?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 05, 2010 May 05, 2010

Copy link to clipboard

Copied

LATEST

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,

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines