Please DONT SHOUT. Thanks. On 12 oct, 12:07, sami nathan <itssami.g...@gmail.com> wrote: > i want to send my req from my url that > is"http://localhost/flip/wap/di/sub?word=formula&type=00&submit=Submit"
Your proper url is "http://localhost/flip/wap/di/sub". The remaining part ("?word=formula&type=00&submit=Submit") is a querystring. > that i want to send only the word "formula" to the url > "http://m.broov.com/wap/di/sub?word=fomula&type=00&submit=Submit"and i > want to get response from the same url and display in my page > my view looks like this > ------------------------------------------------------------------------------------------------ > from django.http import * > from django.template import loader, Context > > def current_datetime(request): > word = request.GET['word'] You'll have an error if "word=<any value>" is not in the querystring. > > message=HttpResponse('http://m.broov.com/wap/di/sub?word='+word+'&submit=Submit') You build an HttpResponse... > return HttpResponse(message) and then another HttpResponse from the first one. While it (tehcnically) works, it's really a WTF. > MY url looks like this > -------------------------------------------------------------------------------------------------------- > from django.conf.urls.defaults import * > from flip.view import current_datetime > > urlpatterns = patterns('', > : > (r"^wap/di/sub",current_datetime) > > I AM GETTING RESPONSE HAS THE SAME URL IN MY DISPLAY PAGE I don't understand this last sentence, sorry. May I suggest you read this: www.catb.org/esr/faqs/smart-questions.html then come back with something we can make sense of ? -- 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.