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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:35:46+00:00 2026-05-27T19:35:46+00:00

I am developing a PHP website which will generate several approval requests. My approval

  • 0

I am developing a PHP website which will generate several approval requests.

My approval page has only one form and one save button, and I want to use 2 radio buttons for each request.

Here is a link to how I imagine it to look like: link

On the PHP side I have no problem with generating the form and assigning different names to the radio buttons. My problem is what names I should give to the radio buttons in order for me to be able to associate them to a specific member on the PHP side? Or do I need to set values for the radio buttons?

How would I accomplish this?

If you have an even better solution to handle such a case I am open to that as well.

Thanks

  • 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-27T19:35:47+00:00Added an answer on May 27, 2026 at 7:35 pm

    Every User will have a unique user_id,
    As you are displaying radiobuttongroup for each other user in the page, and want to access then in php,
    The base way to name them in a array with indices as their user_id

    <input type="radio" value="1" name="acceptance['uid1']"/>Approve<br />
    <input type="radio" value="0" name="acceptance[uid1]"/>Deny
    
    <input type="radio" value="1" name="acceptance['uid2']"/>Approve<br />
    <input type="radio" value="0" name="acceptance[uid2]"/>Deny
    
    <input type="radio" value="1" name="acceptance['uid3']"/>Approve<br />
    <input type="radio" value="0" name="acceptance[uid3]"/>Deny
    

    in php

    foreach($_POST['acceptence'] as $uid=>$acpt)
    {
    ..Do whatever
    }
    

    I hope this would help..If something else is needed plz comment..

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

Sidebar

Related Questions

we are currently developing a website which will heavily involve connections to several social
I am developing a website in php. when a user types a page which
can we use JQ insted of php for developing website. which one is more
I'm currently developing a website which stores bookmarks in a MySQL database using PHP
I'm currently developing a website that will make use of PHP scripts and I'd
I am developing a event website ( on php and mysql ) which requires
I'm developing a PHP website that uses url routing. I'd like the site to
I'm developing an object-oriented PHP website right now and am trying to determine the
I am developing a video website ( PHP - MYSQL ), just like youtube,
I'm developing a website in PHP and I have large JS files that I

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.