Mysql/PHP product selection form. PLEASE HELP!!
Posted: Tue Jul 12, 2005 11:02 am
I am reasonably new to php, and have been dropped in the deep end, by building a shopping cart site. I have just about got the majority working, by "borrowing" and changing code from friends etc.
The site is temporarily at: http://www.ecom-sys.com/ability/ability_direct.htm
you'll see that the first drop down box is populated from the DB correctly, and when changed, the second drop down populates itself with the correct values. However, when the second box is changed, even though the third box populates itself correctly, the first and second box reset themselves to wrong values. I want them to remain on the selected values as before. I've tried everything, introducing various temp variables, declaring and redeclaring, setting, and everything i can think of! but to no avail! Any help would be greatly appreciated.
the code is slightly too long to post here, but here is a link to it:
http://www.ecom-sys.com/ability/code.txt
I apologise for the long post, and the near impossible task of decyphering my code! But i would be the most grateful person in the world ever ever ever if anyone can suggest a solution! Many thanks in advance!
Kind Regards,
Ben Benson
The site is temporarily at: http://www.ecom-sys.com/ability/ability_direct.htm
you'll see that the first drop down box is populated from the DB correctly, and when changed, the second drop down populates itself with the correct values. However, when the second box is changed, even though the third box populates itself correctly, the first and second box reset themselves to wrong values. I want them to remain on the selected values as before. I've tried everything, introducing various temp variables, declaring and redeclaring, setting, and everything i can think of! but to no avail! Any help would be greatly appreciated.
the code is slightly too long to post here, but here is a link to it:
http://www.ecom-sys.com/ability/code.txt
I apologise for the long post, and the near impossible task of decyphering my code! But i would be the most grateful person in the world ever ever ever if anyone can suggest a solution! Many thanks in advance!
Kind Regards,
Ben Benson