0

I tripped on this one.
I have an HTML form that has all kinds of input elements - text, textarea, radio buttons and checkboxes.
I have no problem inserting or updating data in MySQL DB from the HTML form.
But when I want to display what is already in the DB back on my HTML form, it displays the data that is in text and textarea, but not in radio buttons and checkboxes.

Please advise.

Edited by levsha: n/a

3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by venkat0904
0

Could you post an example code of what you did, so we can see where you went wrong?

Thanks,
Cody

0

while displaying the details, u can check the value stored in ur DB against ur checkbox or radio button and when a match occurs just set the attribute as checked="yes"
if u are unable to do this, paste ur code here..

I tripped on this one.
I have an HTML form that has all kinds of input elements - text, textarea, radio buttons and checkboxes.
I have no problem inserting or updating data in MySQL DB from the HTML form.
But when I want to display what is already in the DB back on my HTML form, it displays the data that is in text and textarea, but not in radio buttons and checkboxes.

Please advise.

0

Actually, I solved this problem earlier today, but too sleepy now to give the details.
I'll do it tomorrow.

Thank you very much!

0

well in that case u should mark this thread as solved so others wont waste their time to figure out whats wrong...
Hope u agree..

Actually, I solved this problem earlier today, but too sleepy now to give the details.
I'll do it tomorrow.

Thank you very much!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.