With this method i have the following error: Key 'user_text' not found in <QueryDict: {}>
What should i change or add to my code? On Oct 18, 5:40 pm, Rama Vadakattu <rama.vadaka...@gmail.com> wrote: > Simple Capture the form variable and send it to another template > > def view(request): > user_text = request.GET['user_text'] > return render_to_reponse("....html",{'user_text':user_text}) > > --rama > On Oct 18, 7:26 pm, A_Swtos <sotat...@gmail.com> wrote: > > > > > I have a form like this: > > > <form action="" method="POST"> > > <p><label for="id_subject">Text:</label> > > <input id="id_subject" type="text" name="user_text" > > maxlength="20" /></p> > > <input type="submit" value="Submit" /> > > </form> > > > The user can type into the form whatever wants.If i press the button > > 'submit' i want to go to a page where it appears what i wrote before. > > Is this possible without saving it into a database? > > What is the code that you propose? > > Im new in django and i would like to tell me all the details that will > > help me, if you can. > > Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---