I have what I think is a fairly direct problem but I could not find a solution for it. I am not experienced in HTML or PHP programing. My desired is to create a form consisting of a drop down box where the entries are breeds of dogs. In the drop down box each breed has associated with it an ID_number. For example if the user selects Bulldog the associated value returned is the integer 1. If the user select a Basset hound the associated value returned is 2 and so on. So each bread has a unique ID number which in turn is associated with the ID number in a chronoforms database that I created separately called prices. The data base row (ID number) is associated with the dog breed defined in the drop down box. Each row has four entries which are the prices for four different types of services for that specific dog breed. So the data base structure looks as shown below
ID Price1 Price2 Price 3 Price 4
1 50 60 70 80 this row is associated with the costs for a bulldog
2 40 50 60 70 this row is associated with the costs for a basset hound
.
100 30 40 50 60 this last row is associated with the costs of a Yorkshire Terrier
After the user selects the breed of dog from the drop down list I want to read the four prices associated with the breed (defined by the ID row) and display the price data in four different text boxes.
I know to do that I have to do a data base read from the prices data base, retrieve the four price values and display them but I do not know how to do that.
Any help would be most appreciated.
ID Price1 Price2 Price 3 Price 4
1 50 60 70 80 this row is associated with the costs for a bulldog
2 40 50 60 70 this row is associated with the costs for a basset hound
.
100 30 40 50 60 this last row is associated with the costs of a Yorkshire Terrier
After the user selects the breed of dog from the drop down list I want to read the four prices associated with the breed (defined by the ID row) and display the price data in four different text boxes.
I know to do that I have to do a data base read from the prices data base, retrieve the four price values and display them but I do not know how to do that.
Any help would be most appreciated.