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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:31:18+00:00 2026-05-31T05:31:18+00:00

I am wondering how I can extract the title variable from my forms posted

  • 0

I am wondering how I can extract the title variable from my forms posted fields array.

I know $_POST[‘name’] is the field name but can I do something like $_POST[title] to get the title?

I ask because I have a dynamic form with variable lengths. The dynamics is group_one contains 5 fields, group_two contains 12 fields, group_three contains 2 fields for example.

I am hoping to loop through these groups and post the title of the form field to a column in a DB and its value. Any help appreciated with understanding if I can use the ‘title’ variable in the form field element.

<input type="radio" name="txtGroupOne[]" id="txtDogAtPremisesYes" value="Yes" title="Dog at premises" />Yes
<input type="radio" name="txtGroupOne[]" id="txtDogAtPremisesNo" value="No" title="Dog at premises" />No                               
<input type="text" name="txtGroupOne[]" id="txtNextOfKinName" title="Next of kin name" />                               
<input type="text" name="txtGroupOne[]" id="txtNextOfKinContact" title="Next of kin contact" />
  • 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-31T05:31:19+00:00Added an answer on May 31, 2026 at 5:31 am

    You can add hidden field to each of fields that need titles to be sent to server besides their values.

    <input type="radio" name="txtGroupOne[]" id="txtDogAtPremisesYes" value="Yes" />
    <input type="hidden" name="txtGroupOneTitles[]" value="Dog at premises" >
    
    <input type="radio" name="txtGroupOne[]" id="txtDogAtPremisesNo" value="No" />
    <input type="hidden" name="txtGroupOneTitles[]" value="Dog at premises" >
    
    <input type="text" name="txtGroupOne[]" id="txtNextOfKinName" />
    <input type="hidden" name="txtGroupOneTitles[]" value="Next of kin name" >
    
    <input type="text" name="txtGroupOne[]" id="txtNextOfKinContact" />
    <input type="hidden" name="txtGroupOneTitles[]" value="Next of kin contact" >
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm wondering if I can extract a sequence of musical notes from a recorded
I was wondering how can I list the user tables name with its primary
I was wondering how can I programmatically copy all the discussion items from one
I need to extract the name of the direct sub directory from a full
Is there a way to extract HTML page title using Perl? I know it
Hough Transform can be used to extract lines from images. It can also be
I was wondering if there is a way to extract an Image object from
I'm just wondering how I can extract the last part of a URL using
I was wondering if there is a way I can extract everything before I
I know how to catch all unhandled exceptions in a given thread, but wondering

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.