Question: Make a copy of the order form from lab exercise 4 and name it l6p3.php. Remove the JavaScript code to calculate the total price. Add

Make a copy of the order form from lab exercise 4 and name it l6p3.php. Remove the JavaScript code to calculate the total price. Add JavaScript code to produce an error message and suppress submission of the form if any quantity field contains non-numeric data. (It's OK for a quantity to be empty, but if it's non-empty, it must have only numbers.) Add an action= attribute to your tag to submit the form to http://weblab.kennesaw.edu/formtest.php. Test that the form is submitted correctly when the quantities are numeric or empty, and that an error message is produced otherwise. (Regular expressions are your friend. Anything that's not a digit is bad. What is the predefined class for non-digits?)

LAB EXERCISE 4 ORDER FORM

Number of packets of Carrot seeds: Number of packets of Corn seeds: Number of packets of Beet seeds: Customer name: Shipping Address: Visa MasterCard Discover

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!