By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,949 Members | 1,855 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,949 IT Pros & Developers. It's quick & easy.

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

P: 1
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.
Oct 31 '08 #1
Share this Question
Share on Google+
2 Replies


nathj
Expert 100+
P: 938
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
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
Oct 31 '08 #2

Atli
Expert 5K+
P: 5,058
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
Nov 1 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.