Back to DFS's Workshop Page
Back to Agenda Page
Quadratic Equation Problem IV
An Interactive Web-Based Solution
For this problem, you are to cannibalize any available code and write a pair of scripts which will do the following.
- The HTML Page: rootsInteractiveWeb.html
- Ask the user for the coefficients of the equation:
Ax2 + Bx + C = 0
- Accept input in a form
- Using the "Calculate!" button, send the data to a PHP script called rootsInteractiveWeb.php
- The PHP Script: rootsInteractiveWeb.php
- Display the equation
- Calculate and display the value of the discriminant
- Checking the discriminant, calculate the root(s) and print the results
To see how this could work, view this possible solution.
© 2007 DFStermole
Created 15 Nov 07
Last Modified 16 Nov 07