HTML dropdown only inputs last row to my SQL

Course Queries Syllabus Queries 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Syllabus Queries related to Course Queries. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago


I am a newbie to PHP and trying to create a web-interfaced feedback application. I have created a table in HTML with 5 rows and have scripted it to mysql via PHP file. When I hit submit, the last row entries are added 5 times instead of all rows giving single input each.

HTML form

 action="insert.php" method="post">
 border="3">

Faculty NameSubjectSubject KnowledgeTeaching 

MeathodlogyPunctualitySyllabus CoverageResponsiveness to Queries


 
     name="staff">
    value="staff1">Staff1
    value="staff2">Staff2
    value="staff3">Staff3
    value="staff4">Staff4
    value="staff5">Staff5
 
  
   name="subject">
    value="sub1">Sub1
    value="sub2">Sub2
    value="sub3">Sub3
    value="sub4">Sub4
    value="sub5">Sub5
 
 
    name="Rate1">
    value="1">1
    value="2">2
    value="3">3
    value="4">4
    value="5">5
   
 
 
    name="Rate2">
    value="1">1
    value="2">2
    value="3">3
    value="4">4
    value="5">5
   
  
  
    name="Rate3">
    value="1">1
    value="2">2
    value="3">3
    
                                                
                                                
0 views
0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.