On Tuesday, January 4, 2011 6:31:30 PM UTC, gintare wrote:
>
> Maybe smbd could give advice how data submitted from custom.html to 
> views.py are handled further? 
>
>
> ############   custom.html  with method  search1 ############## 
>
>  <form action="/search1" method="GET"> 
> {% if Lp %} 
> {%  for item in Lp %} 
> <table > 
> <tr> 
>
> <td width='50'> 
> <input type="submit" value="checkdata.{{forloop.counter}}" name="vyk. 
> {{forloop.counter}}"/> </td> 
>
> <td> <textarea cols="30" rows="2" name="q.{{forloop.counter}}.Word" 
> value="{{ query.0|escape}}"> {{item.Word}}  </textarea> </td> 
>
> <td> <textarea cols="30" rows="2" name="q. 
> {{forloop.counter}}.dateWord" value="{{ query.0|escape}}"> 
> {{item.dateWord}}  </textarea> </td> 
>
>
> </tr> 
> </table> 
> <tr> 
> {% endfor %} 
> {% endif %} 
> </form> 
>
>
> ############   views.py  with method  search1 ############## 
>
>
> def search1(request): 
>     request.encoding='utf-8' 
>     query = request.GET.get( 'q','') 
>
> The code above works when i have one button and one text area. 
>
> I do not understand 
>  how to find out which input was selected and 
>  how to read text from many text areas (how to relate several text 
> areas in row with single button in that row ) . 
>
> regards, 
> gintare


Don't do any of that. Instead, read the excellent documentation about the 
very nice forms framework:
http://docs.djangoproject.com/en/1.2/topics/forms/ 
--
DR.

-- 
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.

Reply via email to