TinMan
02-14-2007, 09:20 AM
I have a form containing 12 drop down lists to enable a user to configure a machine. At the bottom of the page there is an "update price" button which when hit looks at the options selected and then indicates cost of the machine. This all works fine. (I must sya I did not write all the coding for this, but have tweaked the original to suit).
I wish to accomplish two things:
1: I want the drop down lists to read a value from somewhere else other than the hard coding inside the form, so that prices can be more easily updated by anyone, without looking at the coding of the page.
Currently price is pulled for example from (11270 is the price).
else if (form.machine[2].selected){
pr_flag =11270;
pr_print="P/L";
the dropdown list coded as for example
<P><SELECT name=machine id="machine">
<OPTION
selected>Select<OPTION>P/L</OPTION>
2: The second thing I would like to do is have just one form that caters for a whole range of machines. The current form is just for one particular machine.
The idea I had in mind was to add another dropdown list with all the machine types in it, then when one is selected somehow it reads the correct data for prices for that particular machine.
I am not sure if both of these options can be accomodated in the one form and if they can I dont know where to start, so some help would be appreciated.
I wish to accomplish two things:
1: I want the drop down lists to read a value from somewhere else other than the hard coding inside the form, so that prices can be more easily updated by anyone, without looking at the coding of the page.
Currently price is pulled for example from (11270 is the price).
else if (form.machine[2].selected){
pr_flag =11270;
pr_print="P/L";
the dropdown list coded as for example
<P><SELECT name=machine id="machine">
<OPTION
selected>Select<OPTION>P/L</OPTION>
2: The second thing I would like to do is have just one form that caters for a whole range of machines. The current form is just for one particular machine.
The idea I had in mind was to add another dropdown list with all the machine types in it, then when one is selected somehow it reads the correct data for prices for that particular machine.
I am not sure if both of these options can be accomodated in the one form and if they can I dont know where to start, so some help would be appreciated.