# Filling an input field like a textarea?

**URL:** <https://forum.kirupa.com/t/filling-an-input-field-like-a-textarea/239268>\
**Category:** web dev\
**Created:** [September 20, 2007, 1:35am UTC](https://forum.kirupa.com/t/filling-an-input-field-like-a-textarea/239268 "2007-09-20T01:35:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevisazombie](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kevisazombie/32/3903_2.png) [@kevisazombie](https://forum.kirupa.com/u/kevisazombie)\
**Post date:** [September 20, 2007, 1:35am UTC](https://forum.kirupa.com/t/filling-an-input-field-like-a-textarea/239268/1 "2007-09-20T01:35:42Z")

</div>

Hey everyone,

I have a form that has a

```auto
<input type="text" name="location_txt" />

```

and a

```auto
<textarea name="details_txt"><?php echo($det_filler);?></textarea>

```

my issue is that i can pass data to the Textarea between the brackets like where I have the PHP and this will populate the text area in the html with the message. Is there any way to do this with a one line input tag or will I have to use another textarea tag.
