Skip to content
Advertisement

Dropdown selection based on other dropdown [closed]

I am working on a webform that will allow the user to simulate a purchase of a movie ticket.

The date/time should change dynamically based on the movie selection. The data is retrieved from the database, and ajax is used to achieve this.

The problem is when I select the movie, the div of date/time disappear, I am probably doing something wrong I guess.

To follow, I have attached the code and the database data.

Index page:

ajaxData.php:

Database:

I have been working on this for a while and still learning but it doesn’t seem to work for some reason.

Any help will be appreciated… Thanks

Advertisement

Answer

You have couple of errors:

1.Index page

2.ajaxData.php

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement