when a user selects a href, it loads a new page x.
I want to pass the url link to the next page (as a variable that can be used to search for contents to load) and have been scratching my ears on how to do this with no success
my href is
<a href="/test/" value="{{ server }}" id ='server_url' _name='server_url'>{{ server }}</a> <br/>
I have tried request.POST (but my form id loaded as GET )
i also tried request.GET.get['server_url']
Any ideas?
François Schiettecatte
unread,
Feb 10, 2014, 10:04:49 AM2/10/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Judy
Is this what you are looking for ?
<a href="/test/?server_url={{server_url}}>{{ server }}</a>
or
<a href="/test/?server_url={{server}}>{{ server }}</a>
You can then get the server url with request.GET.get('server_url')