how to use <fieldset> for questionnaire data, where the radio button selected by user must entered in the results tabel in sql | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how to use <fieldset> for questionnaire data, where the radio button selected by user must entered in the results tabel in sql

https://code.sololearn.com/wHqZt8s2uTBD/?ref=app

4th Jul 2023, 6:17 AM
Mutyara Dima
Mutyara Dima - avatar
14 Answers
0
You are welcome anytime ๐Ÿ’.
4th Jul 2023, 1:32 PM
๐Ÿ‰ ๐“๐“ผ๐“ถ๐“ช๐“ฎ |โดฐโต™โตŽโดฐโดป ๐Ÿ‰
๐Ÿ‰ ๐“๐“ผ๐“ถ๐“ช๐“ฎ |โดฐโต™โตŽโดฐโดป ๐Ÿ‰ - avatar
+ 1
Hi friend..thank u for answer me๐Ÿ™ $connector has been initialized, the data entered is entered into the database, but why are all of them zero
4th Jul 2023, 10:03 AM
Mutyara Dima
Mutyara Dima - avatar
+ 1
Ok friend wait..
4th Jul 2023, 10:08 AM
Mutyara Dima
Mutyara Dima - avatar
+ 1
I already update my code, u can see it again๐Ÿ™
4th Jul 2023, 10:22 AM
Mutyara Dima
Mutyara Dima - avatar
+ 1
Ok let me try ok
4th Jul 2023, 11:07 AM
Mutyara Dima
Mutyara Dima - avatar
+ 1
Thank u so much friend๐ŸŒนfirst I made it like the example at w3school and the data entered the database, but I thought again of a short way, because my form has 7 questions, so I used <fieldset> so everything appears without having long code, but after using it, the data at radio button not entered the database.
4th Jul 2023, 1:12 PM
Mutyara Dima
Mutyara Dima - avatar
+ 1
I will learn more maybe from that link,,thank u so much friend
4th Jul 2023, 1:15 PM
Mutyara Dima
Mutyara Dima - avatar
0
Hi, You added $konektor to mysqli_query but you didn't initialed it that's why u had an error.
4th Jul 2023, 9:56 AM
๐Ÿ‰ ๐“๐“ผ๐“ถ๐“ช๐“ฎ |โดฐโต™โตŽโดฐโดป ๐Ÿ‰
๐Ÿ‰ ๐“๐“ผ๐“ถ๐“ช๐“ฎ |โดฐโต™โตŽโดฐโดป ๐Ÿ‰ - avatar
0
You're welcome, can you show me the updated code again so I can check?
4th Jul 2023, 10:07 AM
๐Ÿ‰ ๐“๐“ผ๐“ถ๐“ช๐“ฎ |โดฐโต™โตŽโดฐโดป ๐Ÿ‰
๐Ÿ‰ ๐“๐“ผ๐“ถ๐“ช๐“ฎ |โดฐโต™โตŽโดฐโดป ๐Ÿ‰ - avatar
4th Jul 2023, 10:29 AM
Mutyara Dima
Mutyara Dima - avatar
0
If u click on submit and send data what should happen after, did you manage this step? for the actual issue, I putted the code in web editor instead of php and it appears, but you should manage the next step after submitting the data show a message that data has been sent for example. https://code.sololearn.com/W7E2jLEyf1g8/?ref=app
4th Jul 2023, 10:55 AM
๐Ÿ‰ ๐“๐“ผ๐“ถ๐“ช๐“ฎ |โดฐโต™โตŽโดฐโดป ๐Ÿ‰
๐Ÿ‰ ๐“๐“ผ๐“ถ๐“ช๐“ฎ |โดฐโต™โตŽโดฐโดป ๐Ÿ‰ - avatar
0
when you click submit , it returns to index.php with white screen not found, But 'nama pegawai' when i input, is entered into the table, but the value of radio button stil 0 ..
4th Jul 2023, 11:02 AM
Mutyara Dima
Mutyara Dima - avatar
0
Check the updated code in comment I sent, test it and let me know if there is the same error Mutyara Dima
4th Jul 2023, 11:05 AM
๐Ÿ‰ ๐“๐“ผ๐“ถ๐“ช๐“ฎ |โดฐโต™โตŽโดฐโดป ๐Ÿ‰
๐Ÿ‰ ๐“๐“ผ๐“ถ๐“ช๐“ฎ |โดฐโต™โตŽโดฐโดป ๐Ÿ‰ - avatar
0
The name="" you had in the form should correspond to the names you had in database which is not the case,plus in this code I see select instead of insert so nothing will be inserted in database. Check this example for more clarification: https://www.w3schools.com/php/php_form_validation.asp this example is interesting too: https://www.google.com/amp/s/www.geeksforgeeks.org/how-to-insert-form-data-into-database-using-php/amp/
4th Jul 2023, 11:41 AM
๐Ÿ‰ ๐“๐“ผ๐“ถ๐“ช๐“ฎ |โดฐโต™โตŽโดฐโดป ๐Ÿ‰
๐Ÿ‰ ๐“๐“ผ๐“ถ๐“ช๐“ฎ |โดฐโต™โตŽโดฐโดป ๐Ÿ‰ - avatar