[Zope] diffucult question

wombat_harness@hotmail.com wombat_harness@hotmail.com
Fri, 20 Aug 1999 04:01:00 -0700


Hey everyone,

if anyone can help me with this i would be enternally grateful.

This is the problem:

On a form i have two dynamically created list objects, quantity:list
and bikeID:list (pulled from a mySQL Db). Basically it is working as a
shopping cart and when the user changes the quantity and presses the
submit button the value of the quantity field in a mySQL database is
updated. Now, i have no problem with the UPDATE statement or getting
the two list objects through at the processing end, the problem i am
having is that i need to associate the bikeID with the quantity so that
the correct quantity is matched against the correct ID in the database.

Normally in perl or ASP, you could set an incrementing counter that you
could use on both form fields and then dynamically create the variable
names on the processing side. However, i don't think you can do this in
Zope and i am having huge problems being able to get the two variables
together...

If this makes sense at all, PLEASE HELP ME!!!

Thanks for any help anyone can give,

Wom.