How to fetch new line from cgi textarea object

Discussion in 'Perl Misc' started by Roman Khutkyy, Jul 6, 2004.

  1. Hi all,
    The problem. User fills the form that includes the textarea object. He/she
    fills the textarea with "Enter" key to start new line. Later this
    information stores in database and will be shown in formatted HTML page.
    How to fetch the 'enters' from user, i mean, how to save format of users
    information. If to do nothing with received textarea parameter the enters
    disapears. I tried to find %D0%A0 substring (I saw it in query string) but
    nothing works out - looks like it is invisible for script.

    Thanks
     
    Roman Khutkyy, Jul 6, 2004
    #1
    1. Advertising

  2. > If to do nothing with received textarea parameter the enters
    > disapears.

    If to do nothing - nothing dissapears.
    Blind guess - have you tried to convert \n => <br/>, or just enclose all
    this in <pre></pre> tags?

    I think you should have shown some code snippet...
     
    Eugene Mikheyev, Jul 6, 2004
    #2
    1. Advertising

  3. You are right Eugene !!!

    It's really so simple. I've got almost crazy - but have never tried to
    fetch /n. Thanks a lot. Рще кажуть різні дурниці - що Українець Українцю
    не допоможе - Ð±Ñ€ÐµÑ…Ð½Ñ Ñ†Ðµ вÑе...




    On Tue, 6 Jul 2004 13:00:10 +0300, Eugene Mikheyev
    <> wrote:

    >> If to do nothing with received textarea parameter the enters
    >> disapears.

    > If to do nothing - nothing dissapears.
    > Blind guess - have you tried to convert \n => <br/>, or just enclose all
    > this in <pre></pre> tags?
    >
    > I think you should have shown some code snippet...
    >
    >
     
    Roman Khutkyy, Jul 6, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shailan
    Replies:
    2
    Views:
    1,108
    Shailan
    Dec 15, 2003
  2. Augustus
    Replies:
    1
    Views:
    383
    Ken Schaefer
    Sep 10, 2003
  3. Textarea Inside of a textarea

    , Feb 4, 2006, in forum: ASP General
    Replies:
    6
    Views:
    348
    Anthony Jones
    Feb 5, 2006
  4. Gavri Savio Fernandez

    cgi = CGI.new causes the script to hang

    Gavri Savio Fernandez, Nov 30, 2003, in forum: Ruby
    Replies:
    2
    Views:
    264
    Ara.T.Howard
    Dec 1, 2003
  5. Replies:
    1
    Views:
    342
    Bart Van der Donck
    Jul 4, 2007
Loading...

Share This Page