Question: HTML and JavaScript ~~Create a web page that will allow the user to enter their name, address, city, state, zip, and email address. If the

HTML and JavaScript ~~Create a web page that will allow the user to enter their name, address, city, state, zip, and email address. If the state isn't IN, IL, or MI, an alert box will pop up and the form will not be submitted. If a valid state is entered, have the data emailed to randomuser@isu.edu with a popup message that the data has been sent.I have the code but when I test in the browser it does not perform any action. What am I doing wrong?

I also need help with a second question if possible. here are the directions for this: Create a web page that will calculate a number raised to an exponent using a loop. Your output should display the answer as "x raised to the ypower is z". A data validation check should pop up an alert box that says "Sorry, this program cannot handle exponents less than one" and the calculation not be performed if the user enters an exponent less than one. The function that calculates the answer must be located in the head area of the web page, it must be called from the body area, and it must pass the number and the exponent the user inputs as parameters to the function. The calculation should take place when the user moves the mouse off a graphic image. Do NOT use the Exponent function that is built into JavaScript. I have not started the code for this one.

Application Example

Application

First Name:

Address:

City:

State:

Zip:

Sender's Email:

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!