# Detect EOL in input field

**URL:** <https://forum.kirupa.com/t/detect-eol-in-input-field/148883>\
**Category:** flash\
**Created:** [May 24, 2005, 11:17am UTC](https://forum.kirupa.com/t/detect-eol-in-input-field/148883 "2005-05-24T11:17:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![magnastik](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@magnastik](https://forum.kirupa.com/u/magnastik)\
**Post date:** [May 24, 2005, 11:17am UTC](https://forum.kirupa.com/t/detect-eol-in-input-field/148883/1 "2005-05-24T11:17:43Z")

</div>

Hi!  
I’m trying to do this:  
i 've an input text field and i want to insert a “\<br\>” when i hit the “enter key”, meaning, i will read the text variable and then insert the tag each time break the line.

Then i will just pass to php and print on screen in html format. But i don’t want use the textarea component or any component.

Basically, i’m trying to understand how can i manipulate that text variable.

Bye,  
MagNastiK
