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

  • SEARCH
  • Home
  • 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 6654331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:22:40+00:00 2026-05-26T01:22:40+00:00

I have a text box that updates/edits my database, after thousands of errors trying

  • 0

I have a text box that updates/edits my database, after thousands of errors trying to get it to actually work I am now at [hopefully] the final stage!

At the moment without these edit pages, how my website is working is that I have a block of text in the database for example

[p]This is sample text[/p]

[p]This is some more sample text that will be in the next paragraph[/p]

And when it echoes out into the site the html tags disappear and the text perfectly formatted exactly how I want it to be.

However, when I add a new page or edit the existing text I end up with exactly what I wrote in the text box echoing out into the website.

What can I do to stop this happening?

Here is the code

<form id="form" name="form" method="post" action="page_edit_parse.php"  onsubmit="return validate_form ( );">

<textarea name="pagebody" id="pagebody" cols="88" rows="16"><?php echo $pagebody; ?></textarea>

<input name="pid" type="hidden" value="<?php echo $pid; ?>" />

<input type="submit" name="button" id="button" value="Submit Page Edit" />

</form>
  • 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-26T01:22:41+00:00Added an answer on May 26, 2026 at 1:22 am

    When the page is displayed, the content of the textarea ($pagebody) is interpreted as html, which is why the markup tags “disappear”. However, when you submit the form, the textarea content is encoded, to preserve your input. The receiving script can decode the pagebody value before writing it to the database. See this related post: php htmlentities to decode textarea.

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

Sidebar

Related Questions

I have a 2GB text file on my linux box that I'm trying to
I have a text box that is going to be populated with a comma
I want to have a text box that the user can type in that
I have a C# form that has a text box that needs to constantly
The project I am working on has a rich text box that can have
I want to have a small text box with a scroll bar that will
I have received requirements that ask to normalize text box content when the user
I have an ASP.NET user control that contains a text box control and a
my Problem is that I have an asp text box which has a value
I have update panel that content check box, textbox, 3 DropDownList with CascadingDropDown extender.

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.