prod = request.POST.get('prod'). but it is getting only the first value in the list, because others have also the same name 'prod'. i want to get all of them..
sorry for being dumb
Am Sonntag, 27. Mai 2012 07:40:58 UTC+2 schrieb lawgon:
On Sat, 2012-05-26 at 07:03 -0700, doniyor wrote:
> for example: user has selected 3 items from products table and then
> goes to
> next step where he sees what he has selected and then he submits the
> booking with some last information of his personal. the point is that
> if
> he has selected 3 items, then there are 3 items in db, so i create 3
> html
> input fields for each selected item where i will render the data that
> i get
> from db. thats why i want to create these html input fields according
> to
> the number of items in db..
this is easily done with a for loop in the template
--
regards
Kenneth Gonsalves
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/xPS7sMrHncAJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment