I want to develop JavaScript application that will match customers with a car from their available rentals. Using an HTML form, the customer will enter details such as first, last names, how many passengers and items of luggage they have, and how long they want to rent for, and the application will feedback to the user telling them which cars match their preferences and the cost of the rental. An image of each matching car should also be displayed.
I therefore shown in the information below. I already created an array but I don't know how to start. Please can someone help me
Thanks in advance
[LIST][*]Car[*]Fuel Consumption (Miles per Gallon)[*]No. Passengers[*]No. Items of Luggage[*]Fuel[*]Transmission[*]Air Conditioning[*]Day Hire [*]Weekend Hire [*]Weekly Hire
var Peugeot = new Array("41","4","1","Petrol","Manual","No", "20", "90", "125")
Dear, from where will the data be fed back to the user?
I think (may be wrong!) you can't do it just using JavaScript!
You will have to store the data in a database and then based on user input you will have to run an SQL Query and return the result.
So, to conclude, I would say that you will have to use any server side language viz. PHP, ASP etc. and an SQL viz. MySQL, PostgreSQL etc. along with JavaScript (I could do without it!).
Let's see if anyone else can throw some light!
"It will never rain roses: when we want to have more roses, we must plant more roses."
- George Eliot
Bookmarks