# Multiple input boxes

**URL:** <https://discuss.streamlit.io/t/multiple-input-boxes/2836>\
**Category:** Using Streamlit\
**Created:** [May 11, 2020, 5:04pm UTC](https://discuss.streamlit.io/t/multiple-input-boxes/2836 "2020-05-11T17:04:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![saurabh\_pandey](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/saurabh_pandey/32/1644_2.png) [@saurabh\_pandey](https://discuss.streamlit.io/u/saurabh_pandey)\
**Post date:** [May 11, 2020, 5:04pm UTC](https://discuss.streamlit.io/t/multiple-input-boxes/2836/1 "2020-05-11T17:04:17Z")

</div>

I am taking input in a for loop.  
But for each iteration it is printing a new input box.  
I want take input repeatedly in the same input box.

It is filling the page with so many boxes according to the loop count  
**l=[]**  
**for i in range(100):**  
\*\* a=st.text\_box(“val”)\*\*  
\*\* l.append(a)\*\*

Here my code generates 100 boxes. But I need only one

---

<div class="post-metadata">

**Author:** ![randyzwitch](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/randyzwitch/32/58772_2.png) [@randyzwitch](https://discuss.streamlit.io/u/randyzwitch)\
**Post date:** [May 11, 2020, 5:12pm UTC](https://discuss.streamlit.io/t/multiple-input-boxes/2836/2 "2020-05-11T17:12:13Z")

</div>

Duplicate to [I want to take multiple inputs in a for loop](https://discuss.streamlit.io/t/i-want-to-take-multiple-inputs-in-a-for-loop/2828/4). Please try and keep to a single topic as much as possible, so people can understand the references. Thanks!

---

<div class="post-metadata">

**Author:** ![randyzwitch](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/randyzwitch/32/58772_2.png) [@randyzwitch](https://discuss.streamlit.io/u/randyzwitch)\
**Post date:** [May 11, 2020, 5:12pm UTC](https://discuss.streamlit.io/t/multiple-input-boxes/2836/3 "2020-05-11T17:12:16Z")

</div>


