On Aug 22, 6:55 pm, Robb Bossley <robb.boss...@gmail.com> wrote:
> I have one more question to ask of all of you Django gurus - I hope it is
> simple, though I think I have pulled most of my hair out trying to get this
> down in my mind
>
> I have a form that displays four lookup values.  I would like to append
> these values to the url (versus setting these variables as session
> variables) and redirect to a page that uses these values in its
> calculations.  Suppose:
>
> Customer order # = 4
> Customer item # = 36
>
> URL was:
>
> /site/<customer #>/mainpage
>
> Now it is:
>
> /site/<customer #>/mainpage/4/36    (which by the way is a new page using
> these values passed in the url)
>
> I have the new page already working and I have the form with the select
> boxes for the four parameters, but I can't figure out how to get that into
> the URL
>
> Help!
>
> Thank you,
>
> Robb

If you put method="GET" in the form tag in your HTML, submitting it
will add the parameters to the action URL as query parameters:

/myurl/?order=4&item=36

and you can access them from your view via the request.GET dictionary.
--
DR.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to