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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:01:14+00:00 2026-05-30T15:01:14+00:00

While echoing a form from PHP with some predefined value retrieved from file from

  • 0

While echoing a form from PHP with some predefined value retrieved from file from php i have come across a trouble.

i can see those predefined values in both input boxes as expected that is Content and Title of the article.

But whenever i click on the submit the Content part of form is not getting submitted.

when i do print_r($_REQUEST); i only see following o/p
Array ( [action] => edit_art [art_id] =>11 $art_id [title] => TCS [agree] => on )

when i don’t provide predefined value for Content input box (textarea) it is getting submitted with whatever i type in it.

my code is as follows

echo '<form  action="art_action.php?action=edit_art&art_id=$art_id" method="post"><br />
<p><b>Article Title</b></p>
<input type="text" name="title" **value='.$art_title.'**/><br />
<span id="title_check"></span><br />
<p><b>Content</b></p><br />
<textarea cols="75" rows="20"  **value='.$content.'**  name="content"></textarea><br />
<span id="content_check"></span>
<div class="content" ><input type="checkbox" name="agree" style="margin-right:10px"/>Agree Terms and Conditions first.<span id="agree_check"></span><br />
<input type="button" onclick="varify_and_post_article(this.form)" Value="Post Article"/><br />
</form>';

Please help me out.
Thanx in advance !!

  • 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-30T15:01:16+00:00Added an answer on May 30, 2026 at 3:01 pm

    A textarea has no value attribute, you should put the $content inside the tags

    echo '<textarea cols="75" rows="20" name="content">'.$content.'</textarea>'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some PHP script querying a mysql database and echoing out a piece
I have a while statement that is echoing about 10 different stories. Every story
Okay so we have a mySQL while loop echoing out divs for a certain
Came across something strange while migrating to my new server. I have a script
While going through university and from following the development of SO, I've heard a
While creating a file synchronization program in C# I tried to make a method
I have a query and a loop written that lists all the rows from
I'm having a problem echoing a single line from a sql query. I'm still
I have two scripts that I call with two PHP include() calls. The first
Update mysql with $_POST data from while loop I'm trying to get this round

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.