How do you incorporate forms into pretty urls?
I have a paged list of things that you access with the following urls
/goals/page1/start35/
/goals/page2/start35/
/goals/page3/start35/
etc...
Doing links to the next and previous page is easy:
{% url ids.views.goals page_num=prev_page,start_num=start_num %}
{% url ids.views.goals page_num=next_page,start_num=start_num %}
But if I want to provide an input field to let them choose a page to
jump to, how would I implement that?
Go to page <input type=text value="{{ current_page }}" size="3">
<input type=button value="Go">
I can send it to the generic /goals/ page with POSTed data and handle
it just fine... but then I don't have the /goals/page#/start35/ url
anymore.
Any help?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---