> My Url look like this > > di/sub?word=check&type=00&submit=Submit > ------- > but it shows the error for symbols "?" > ----------------------------------------------- > i want to print only the word check in this url and it can be anyword > given by user
Hi Sami, while you technically *can* make this working, it's not the usual way of handling URL's. Anything beyond a question mark is a parameter and is better handled inside your view. So, your urls.py would look like this: (r"^wap/di/sub", hellow) And your view would contain the following code: def hellow(request): word = request.GET['word'] return HttpResponse(word) But you should need two things: - the code does not contain any error checking (i.e. what happens if "word" is not provided in the URL - There is a security issue. Displaying anything that user provides on the output page *without checking it first* is insecure and can lead to various security-related issues I'll leave the JavaScript bit to your excercise as I don't really understand what you're trying to achieve with that. Cheers Jirka -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.