# Echoing Problem

**URL:** https://forum.kirupa.com/t/echoing-problem/174001
**Category:** programming
**Created:** [January 1, 2006, 3:42pm UTC](https://forum.kirupa.com/t/echoing-problem/174001 "2006-01-01T15:42:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dreamerp](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@dreamerp](https://forum.kirupa.com/u/dreamerp)
#### Post date: [January 1, 2006, 3:42pm UTC](https://forum.kirupa.com/t/echoing-problem/174001/1 "2006-01-01T15:42:55Z")

</div>

Hey Guys,

I have a weird problem. I am echoing some code from a database, and basically a person is putting in the values of the variables before. This is working okay, and I am echoing the code in a \<textarea\> so they can copy the code. BUT, the thing is-

When I echo the code, this code also has a \<textarea\>. So when it closes, it closes the real text area! How can I make it so it does not? Here is my echoing code-

```php
echo "<textarea name=\"code\" cols=\"85\" rows=\"15\" id=\"code\">"; eval('echo \''.$code.'\';'); echo "</textarea>";

```

Please help and Happy New Year,  
Peter
