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 9227149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:59:53+00:00 2026-06-18T04:59:53+00:00

I got a textarea that has some html code in it. I want to

  • 0

I got a textarea that has some html code in it. I want to send the content of this textarea without any change to next page via post method.

<html>
<form id="myform" name="myform" action="./getdata.php" method="post">

<td><textarea rows="7" cols="15" name="outputtext" style="width: 99%;"></textarea></td>

<input type="submit">

</form>
</html>

and my php code :

<?
$file_contents = $_POST['outputtext'];
?>
<textarea rows="30" cols="150"><?PHP  print_r($file_contents); ?></textarea>

The problem with my code is that the orginal content of my first textarea gets changed when it sends to next page! For example:

<a href="/season/episodes.php?name=ok&id=1">

becomes:

<a href=\"/season/episodes.php?name=ok&id=1\">

could you guys how i can preserve the original html content without it changes in next page ?(Note all my html content changes in second pages which i dont want to change).My second textarea in second page is for testing purpose and i actually want to parse orginal value of $file_contents but for some reason it changes!

  • 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-06-18T04:59:55+00:00Added an answer on June 18, 2026 at 4:59 am

    In your second PHP script, simply use strip_slashes to remove the extra slashes in the passed text:

    <?
    $file_contents = stripslashes($_POST['outputtext']);
    ?>
    <textarea rows="30" cols="150"><?PHP  print_r($file_contents); ?></textarea>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got an asp:TextArea that I would like to do some processing (filtering a
I've got this bit of code to grab a url within a textarea. It
I really tried this a lot but I haven't got any result that actually
I got a textarea of 680 pixels wide. This needs to be made fluid
Got a question for some jQuery wizard who might stumble upon this. When I
I'm trying to show all data that I got in the textarea public static
I have got a database with some emails (max 300) and I want to
I've got an HTML form in a Google Maps info window that uses the
Below is the link to the code that has the two RAdEditors I am
I've got one class that has two text fields in it: name and surname.

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.