Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7546819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:17:52+00:00 2026-05-30T09:17:52+00:00

<textarea name=notesrows=2 cols=70 readonly><?php if(!empty($this->log_note)){ echo $this->log_note;} ?> </textarea><br><br> <label for=add_note> Add Note </label>

  • 0
<textarea name="notes"rows="2" cols="70" readonly><?php if(!empty($this->log_note)){ echo $this->log_note;} ?>
</textarea><br><br> 
<label for="add_note"> Add Note </label>
<textarea name="add_note" rows="2" cols="70">
</textarea>                 

Lets say I have a text area in a form that displays data from a database table.

Now I have another text area field, and when I enter data it will update the above table field with the data entered.

    $post_notes=$this->post['notes'];
    $post_add_note=$post_notes."<br>".$this->post['add_note'];

    $add_note_update=$this->db->query("
                     UPDATE notes SET note='$post_add_note' WHERE id='$hidden_id'
                 ");

Now next time when I display the text area field with the name ‘notes’, I want the data in the text area to be displayed in a newline. i.e My
tag should work or is there any other way to display it with a line break?

NOTE: I will take care of the SQL injection scenarios, but I want to get my logic right first.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T09:17:53+00:00Added an answer on May 30, 2026 at 9:17 am

    Any line breaks in the space between the <textarea></textarea> tags are displayed in the text box. If you replace "<br>" with "\n" it should work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this form: <form action=contact.php method=post id=contactform> <ol> <li> <label for=name>First Name *
I have this form: <form name=commentform id=commentform action=comment.php method=post enctype=multipart/form-data> Your Name: <textarea maxlength=60
I want to add multiples lines to a textarea. For example, this is the
i have this jQuery code: $(#text_a).html('<textarea name = text>.$text_user.</textarea>'); And if I put in
I want a textarea with no scrollbars. This is done by setting overflow to
My idea is to use a textarea to let the user copy email name
The following code doesnt work: <s:TextArea name = Desc1 id=Desc1 x=8 y=233 width=162 height=369
I have a little problem with jQuery: $('#form-submit').click(function () { $('#textarea, #name').removeClass('error-state').addClass('normal-state'); var myName
I have this html form which calls a php file . The index.html ->
I've this simple form: <form id=commentForm method=POST action=api/comment> <input type=text name=name title=Your name/> <textarea

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.