Here is what I am trying to do.
I have a Car Information table. I have four fields- Car_id,Car_Description, Car_Make, Car_Model.
Now I have a coldfusion form with a drop down list that I poulate witht he descriptions. And then I have text-fields for the other three fields.
Now lets say we have Car_Descrption=Blue Car , Car_Make=Ford
Car_Model=Mustang and Car_Id=1.
I everytime the user select the Car_Decription from the Drop Down List..I want the corresponding Make,Model to be displayed on the page in text boxes and diable them, so users cant change or write to it. I dont know how to do it.
Can someone please help. This the code i have till now.
<cfquery name="CarTypeDD" datasource="CarMileage">
SELECT Car_Description
FROM Car_Info
ORDER BY Car_year DESC
</cfquery>
<html>
<head>
<title>Car Mileage System</title>
Choose a car:
<select name="CarType">
<cfoutput query="CarTypeDD">
<option value="#CarTypeDD.Car_Description#">
#CarTypeDD.Car_Description#
</option>
</cfoutput>
</select>
</p>
Make:
<input type="text" name="textfield9">
Model:
<input type="text" name="textfield10">
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>
I have a Car Information table. I have four fields- Car_id,Car_Description, Car_Make, Car_Model.
Now I have a coldfusion form with a drop down list that I poulate witht he descriptions. And then I have text-fields for the other three fields.
Now lets say we have Car_Descrption=Blue Car , Car_Make=Ford
Car_Model=Mustang and Car_Id=1.
I everytime the user select the Car_Decription from the Drop Down List..I want the corresponding Make,Model to be displayed on the page in text boxes and diable them, so users cant change or write to it. I dont know how to do it.
Can someone please help. This the code i have till now.
<cfquery name="CarTypeDD" datasource="CarMileage">
SELECT Car_Description
FROM Car_Info
ORDER BY Car_year DESC
</cfquery>
<html>
<head>
<title>Car Mileage System</title>
Choose a car:
<select name="CarType">
<cfoutput query="CarTypeDD">
<option value="#CarTypeDD.Car_Description#">
#CarTypeDD.Car_Description#
</option>
</cfoutput>
</select>
</p>
Make:
<input type="text" name="textfield9">
Model:
<input type="text" name="textfield10">
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>