Thursday, November 12, 2009

Convert Me! [assignment]

Write and Design two pages such that:

a) page one has a form with a text field entry box, a submit button, and a reset button
b) the user will enter a temperature in degrees celcius and press submit
b) page two will appear and will display the temperature in degrees Fahrenheit

formula ---
F = (9/5) * (C + 32)

Extra Credit:
Also include fields to:
a) change the text color
b) change the background color
c) prompt the user to enter a number between 1 and 10; then alert the user if the field is not in the acceptable range

You will need two php pages:
a) form
b) display page with all the code

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.