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
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment