+ 1
how to use <fieldset> for questionnaire data, where the radio button selected by user must entered in the results tabel in sql
14 Antworten
0
You are welcome anytime 💐.
+ 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
+ 1
Ok friend wait..
+ 1
I already update my code, u can see it again🙏
+ 1
Ok let me try ok
+ 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.
+ 1
I will learn more maybe from that link,,thank u so much friend
0
Hi,
You added $konektor to mysqli_query but you didn't initialed it that's why u had an error.
0
You're welcome, can you show me the updated code again so I can check?
0
This isi my insert and call data base:
https://code.sololearn.com/wjowYNe4225W/?ref=app
https://code.sololearn.com/wdurwn0AxqzY/?ref=app
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
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 ..
0
Check the updated code in comment I sent, test it and let me know if there is the same error
Mutyara Dima
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/