Fisrt,it's not multiple forms as your description.
You can use request.GET.getlist('text','') to get the every text in one list
在 2011-9-26 下午11:34,"sakthi" <sakthi92@gmail.com>写道:
> In a page i made multiple text forms with the same name. i cannot get
> the values of all the forms. only the last form's value is available.
>
> my html looks like this
> <form action='/calc/' method='get'
> <input type="text" name="txt" />
> <input type="text" name="txt" />
> <input type="text" name="txt" />
> <input type="text" name="txt" />
> <input type="text" name="txt" />
> <input type='submit' value='x'/>
>
> how can i get the values of all the forms having the same name.
>
> Thank you.
>
> --
> 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.
>
-- > In a page i made multiple text forms with the same name. i cannot get
> the values of all the forms. only the last form's value is available.
>
> my html looks like this
> <form action='/calc/' method='get'
> <input type="text" name="txt" />
> <input type="text" name="txt" />
> <input type="text" name="txt" />
> <input type="text" name="txt" />
> <input type="text" name="txt" />
> <input type='submit' value='x'/>
>
> how can i get the values of all the forms having the same name.
>
> Thank you.
>
> --
> 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.
>
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