Answered step by step
Verified Expert Solution
Question
1 Approved Answer
add course button simply shows a table of the entered course next to the form on the same HTML page by using a showCourse function.
add course button simply shows a table of the entered course next to the form on the same HTML page by using a showCourse function. Be careful there is no cgpa calculation at this stage.
The form sends the required information to "calccgpa.php" using "post" when the "Calculate" button is pressed. The PHP code will whow the used course data in a table and calculate the CGPA.
The form name must be named "cgpa_form" and id should be "cgf1".
The input text fields must be named "crcode" and "crname".
The radio group must be named "crdts" and the dropdown selection must be named "crgrade".
Please note that the sample shown above contains styling. For simlifying your quiz task no styling is expected in your answers.
Hence, You will submit one HTML code, one JS code and one PHP code.
HTML: Write the form tag and its contents for the form given above. (Do not write an entire HTML page - just write the code needed for the form)
JavaScript: Write the client side JavaScript function called "showCourse" that will create the table of courses on the same HTML page with the form ( You will provide only the function definition as your answer).
Php: code calccgpa.php which will calculate and display the cgpa of the student together with a table of course details on a new HTML page.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started