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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:32:22+00:00 2026-06-17T23:32:22+00:00

I have a form with a textarea control, mainly to input an article that

  • 0

I have a form with a textarea control, mainly to input an article that consists of pure text… Inside the textarea control, i have text like

enter image description here

I submit the form and save the textarea data into a database field. So far so good..

the correct data appears in the database

When in a browser, i’m trying to output the database field, but i dont get the content of the php include file, instead i get something like the following:

enter image description here

The php tags are commented!!!

Why is the browser not showing/parsing the content of the include file?

UPDATED:
this is the content of test.php

<?php
   echo test;
?>

this is the code of article.php

<?php
require_once('../includes/global.inc.php');
require_once('../includes/connection.inc.php');

if (isset($_GET['article']) && is_numeric($_GET['article'])) {
   $get_article = (int)$_GET['article'];

   $conn = connect('read');

   $sql = 'SELECT article.article_id, article.title, article.description, article.article, article.seo_url
        FROM article
        WHERE article.article_id = ?';

   $stmt = $conn->stmt_init();

   $stmt->prepare($sql);
   $stmt->bind_param('i', $get_article);
   $stmt->execute();
   $stmt->store_result();
   $stmt->bind_result($articleid, $title, $description, $article, $seourl);
   $stmt->fetch();
   $stmt->free_result();
   $stmt->close();
}
?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   ...
</head>
<body>
    <?php
     echo $title;
     echo $article;
     ?>
</body>
</html>
  • 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-17T23:32:23+00:00Added an answer on June 17, 2026 at 11:32 pm

    Seems like you misunderstood where PHP is executed. PHP is executed on the server and not in the browser. You’ll have to make sure the site will be parsed on server by PHP. You’lll mostly do it by using a PHP enabled webserver and giving the file a .php extension.

    The php code isn’t outcommented. Thats just your debugging tool that shows it outcommented because the opening <?php would lead to invalid HTML. It could also be possible that HTML parser of your browser adds the <!-- to avoid problems with the opening php. I don’t know this exactly.

    You can verify this by viewing the raw html source code and you’ll see there is no magic that comments out your php 🙂

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

Sidebar

Related Questions

I have a form with different html input fields... 1) <input type=text> 2) <textarea></textarea>
I have created a form <form name=form1 method=post> <textarea rows=5 cols=20 name=ta1></textarea> <input type=submit
I have a text area control on a form that is supposed to accept
I have form: <form method='post' action='script.php'> <textarea id='main' name='text'></textarea> <input type='hidden' name='id' value='1'> <input
I have a form with a textarea that can contain large amounts of content
I have a script.I will show sample. <form> <textarea id='input'></textarea> <input onclick=convert() value=go function
I have a textarea form which takes a large block of text. In this
I have simple form with a textarea and a button, and I submit the
I have a form that is on a PHP Page and consists of 2
I have a textarea form input where users input ingredients for a recipe. What

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.