radio buttons data should be inserted into database with the help php code and mysql

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abdulwajeed3804
    New Member
    • Oct 2008
    • 1

    radio buttons data should be inserted into database with the help php code and mysql

    I am searching the code of php and mysql i have created a employee details form like id, firstname, lastname, gender, age, qualification. I have created radio buttons to male and female and if i am submitting the form means the section of gender in database is showing blank. can anyone give me the perfect code to solve this.
  • nathj
    Recognized Expert Contributor
    • May 2007
    • 937

    #2
    Originally posted by abdulwajeed3804
    I am searching the code of php and mysql i have created a employee details form like id, firstname, lastname, gender, age, qualification. I have created radio buttons to male and female and if i am submitting the form means the section of gender in database is showing blank.
    That's a nice project, shouldn't be too tricky
    Originally posted by abdulwajeed3804
    can anyone give me the perfect code to solve this.
    No!

    This isn't a free code service, you have to write the code yourself and then ask for help where you get stuck. so, what have you got so far? can we see the form and the PHP that processes the form details.

    From there we should be able to track down what you've got wrong with your radio buttons.

    In the mean time take a look at this tutorial paying particular attention to the radio buttons section. It will give you some ide of wht a radio button returns and what you need to do to write that valu to your DB successfully.

    Now, count yourself lucky that's already more help than your 'question' deserves.

    nathj

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      Hi.

      As nathj rightly states, we won't write your code for you. We are happy to help you out tho, but you are going to have to provide us with the details we need to do so. (See How to ask a question)

      To start with, we are going to need to see the code that is causing the problem. In this case the HTML <form> and the code that is processing the data and inserting it into your database.
      If you are getting any errors or warnings, we would have to see those as well.

      Please read through our Posting Guidelines before posting again.

      Thank you.
      Moderator

      Comment

      Working...