Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This part uses the database. Write a file named hw6b.htm. This file should create a form with a text field for a user to enter

This part uses the database. Write a file named hw6b.htm. This file should create a form with a text field for a user to enter a customer ID. The form should also have a button. When the user clicks the button, an AJAX request is made to a file named hw6b.php. This file will take the customerid as a parameter, and produce a response that will consist of a JavaScript function call. If the customer id does not exist, the function call should be not_there(). If the customer id does exist, the function call should be there(), and there should have arguments that are all the fields of that customer. When hw6b.htm receives the response, it should display evaluate the function. The not_there() function should print an alert telling the user there was an error. The there() function should display the values of its arguments on the page.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

a. Describe the encounter. What made it intercultural?

Answered: 1 week ago