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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:55:28+00:00 2026-06-12T10:55:28+00:00

Could I please get a skeleton of adding/removing dynamic textboxes and then posting the

  • 0

Could I please get a skeleton of adding/removing dynamic textboxes and then posting the appended results.

I’d like it to look like this:

[Empty Textbox][Add button]

once Value1 is put into the textbox and add is clicked it’ll show:

[Empty Textbox][Add button]
[Value1][Remove button]

Once everything is added I want it to be posted and allow for people to remove any of the added textboxes.

I’ve been looking for examples and could not find one that works this way.

<form method="post" id="multi" action="process.php">

   <label for="cname">Company Name: <span class="required">*</span></label>
   <input type="text" size="30px" id="cname" name="cname" value="<?php echo ($sr && !$cf['form_ok']) ? $cf['posted_form_data']['cname'] : '' ?>" placeholder="The Rainbow Kingdom" required autofocus />

   <label for="name">Contact Name: <span class="required">*</span></label>
   <input type="text" size="30px"id="name" name="name" value="<?php echo ($sr && !$cf['form_ok']) ? $cf['posted_form_data']['name'] : '' ?>" placeholder="John Doe" required autofocus />

   <label for="email">Email Address: <span class="required">*</span></label>
   <input type="email" size="50px" id="email" name="email" value="<?php echo ($sr && !$cf['form_ok']) ? $cf['posted_form_data']['email'] : '' ?>" placeholder="johndoe@example.com" required />

   <label for="telephone">Telephone: </label>                   
   <input size="9px" placeholder="1112223333" autofocus maxlength="9" type="tel" id="telephone" name="telephone" value="<?php echo ($sr && !$cf['form_ok']) ? $cf['posted_form_data']['telephone'] : '' ?>" />         
   <div>
      <label>Tag</label><input class="tag" type="text" name="" type="text" />
      <div id="content" ></div>
   </div>

   <label for="message">Message: <span class="required">*</span></label>
   <textarea id="message" name="message" placeholder="Your message must be greater than 20 characters" required data-minlength="20"><?php echo ($sr && !$cf['form_ok']) ? $cf['posted_form_data']['message'] : '' ?></textarea>

   <p id="req-field-desc">
      <span class="required">*</span> indicates a required field
   </p>
   <span id="loading"></span>

   <input type="submit" value="Submit!" id="submit-button" />
</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-06-12T10:55:30+00:00Added an answer on June 12, 2026 at 10:55 am

    You can take a look at this. Pretty ugly but still readable. Enough for giving you the idea.
    The value will be display as normal text, and will be stored in a hidden field with array-like name.
    When you submit the form, the data from the hidden fields will be collected.

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

Sidebar

Related Questions

Could someone please help explain why I can't get this to work? I properly
Could I please get a explanation of why this code produces the result it
Could please show me code how to get this type of effect? I have
Could you please hemp me get to the bottom of this problem? I don't
Could somebody please help me get Clang up and running? (I don't have 3.2)
Could you please help me to get image upload working on a view with
Could you please explain how to get information from attributes in C++? For example,
Could someone please tell me why this <%= destroy_password_url @user.password_reset_token %> generates http://localhost:3000/api/destroy_password.4G5EoRVYMUAtiIKqOerKsw routes.rb
Could someone please suggest why this is happening... I’ve got some code to pretty
Could I please get some help with coverting some PHP code to jQuery/JavaScript? 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.