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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:52:36+00:00 2026-05-29T23:52:36+00:00

I am trying to have two input boxes, and a button which will update

  • 0

I am trying to have two input boxes, and a button which will update them in a database. I have deletion, which works, adding new rows, and other things, yet this refuses to work:

    echo '<form action="index.php" method="post"><input placeholder="Enter a title here" type = "Text" name = "Title_input" value = "'.${notes.$loc."titles"}.'" style = "top:0px;left:230px;right:0px;height:30px;position:absolute;">';
echo '<textarea placeholder="Make note of something here!" cols="94" rows="20" name="Text_input" style="top:40px;left:230px;position:absolute;right:50px;">'.${notes.$loc."notes"}.'</textarea>';

Which prints the text boxes out to the page. I also have

 <form action="index.php" method = "post"><input type="Submit" name="Update" value="Update" style="right:0px;bottom:0px;height:50px;width:200px;position:inherit">

(It has the closing tags and everything after another block of code)

However when I run:

if (isset($_POST['Update']) && isset($_POST['Title_input']) && isset($_POST['Text_input'])) {
echo $_POST['Title_input'];
  } else {
echo "Failed";
  }

It echoes ‘Failed’. I cannot see any issue, as the text areas would have been outputted so should be set.

  • 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-29T23:52:38+00:00Added an answer on May 29, 2026 at 11:52 pm

    You have to put the input fields in the same form as the update button.

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

Sidebar

Related Questions

I have a slight problem, I am trying to capture the input of two
I have two classes one of which inherits from the other. Im trying to
I'm trying to have two functions checking each form input, one for onchange() and
I'm trying to have two or more columns worth of DIVs for input elements
Say, I have two HTML elements - an input field and a button. The
I have two drop down menus, one of which I am trying to replace
I have two html text input fields and two buttons. The first button saves
I have two PNGs that I am trying to combine into a PDF using
I have two named instances of SQL Server 2008 and am trying to set
I have two arrays of data that I'm trying to amalgamate. One contains actual

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.