>From html make check boxes submit services ids ..

After form submittion the choosen services ids will be submitted as an
array in request.POST or request.GET

Loop through this array , query the model that contain the service price
with each service id , and save all service data in the chosen model

On Wed, 4 Mar 2020, 5:56 pm Tosin Ayoola, <[email protected]> wrote:

> the project is a services subscription platform, i wan to list out
> services offered, then user make a selection for the choice the wan, after
> that the click submit to make payment, now i have the services listed in
> html, my challenge is how do i save this selected services to django models
> alongside the price for each service
>
> On Wed, Mar 4, 2020 at 11:46 AM Tosin Ayoola <[email protected]>
> wrote:
>
>> saving values of a checkbox to the database
>>
>> On Wed, Mar 4, 2020 at 1:23 AM Motaz Hejaze <[email protected]> wrote:
>>
>>> Please let me know exactly the problem  , i dont remember the case you
>>> talking about
>>>
>>> On Tue, 3 Mar 2020, 8:47 pm Tosin Ayoola, <[email protected]>
>>> wrote:
>>>
>>>> halo.
>>>> good day to you, thank for you response to my question about checkbox
>>>> with django, i could really use your help on that, that why i messaged your
>>>> privately, hoping you can help out, a sample code, models, views, form will
>>>> help, i will appreciate if you can help me out. thanks
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAHLKn70_4k9ksCNz3SiaOGuSX%3DVWyGkW0_01ZuLJsDeLMqLvUw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAHLKn70_4k9ksCNz3SiaOGuSX%3DVWyGkW0_01ZuLJsDeLMqLvUw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAHV4E-ctYWxhoCYn71Piqd6aViBn0v9NtNyXz9%2BQZL0Wa1Rk6g%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAHV4E-ctYWxhoCYn71Piqd6aViBn0v9NtNyXz9%2BQZL0Wa1Rk6g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHLKn72mUAL73kvWEZF5QtUOfyK8f1vftsV5%2B8_5dT%2Ber-W-bw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHLKn72mUAL73kvWEZF5QtUOfyK8f1vftsV5%2B8_5dT%2Ber-W-bw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHV4E-ecDHLBJ6hf2bxaNRkVyFsAmuxyuYYUjZLfttgrQ26bvg%40mail.gmail.com.

Reply via email to