Submitting Your Form to a Live Server

 

1. Take a look at the code view of your form. Find the <form> tag. What is the action associated with this form?

2. Change the action to action="http://www.techdodge.com/php/handle_hotel_form.php"

3. Since the form will now be submitted to the server the rest of the tag after method="post" can be deleted. Be sure the closing wicket is not deleted >.

4. Now there are two checks of the data. The JavaScript checks the data on the client side before it is sent to the server and the script running on the server checks the data as well and responds accordingly.

5. Save your file and then test it. Show the server's response to your instructor for teacher check.