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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:40:35+00:00 2026-06-11T18:40:35+00:00

https://i.stack.imgur.com/Gy3o0.png That is what the site looks like now. What I want to do

  • 0

https://i.stack.imgur.com/Gy3o0.png

That is what the site looks like now. What I want to do is when you click on the approve registration on the table, it will extract the value of the id no and the name of that particular record. I thought i was on the right track. I knew how to get the id no. But it doesn’t get the value of the name at the same time.

This is how the code looks like:

while($row = mysql_fetch_array($mayor))
{
    $id = $row['identification_no'];
    $name = $row['lastname'].", ".$row['firstname'];

    echo "<tr>";
    echo "<td><form method=post action=approvedmayor.php><input type='radio' name=id value='$id'></td>";
}

approvedmayor.php

$query = mysql_query("insert into tbcandidates VALUES ($id, '$name', 'mayor')"); 

if ($query)
{
    echo "You appproved ";
    echo $name;
}

else
    echo "error";
  • 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-11T18:40:36+00:00Added an answer on June 11, 2026 at 6:40 pm

    you can try like this…

    <?php
    
    while($row = mysql_fetch_array($mayor))
    {
    $id = $row['identification_no'];
    $name = $row['lastname'].", ".$row['firstname'];
    
    echo "<tr><td><a href='approvedmayor.php?id=$id&name=$name'>Approve</a></td></tr>";
    }
    
    ?>
    

    in this type don’t use the form, and Approve button… try this alone

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

Sidebar

Related Questions

I want to create a DashBoard in my Application like that https://i.stack.imgur.com/uDwlf.png . The
This is my site : http://searchr.us/ https://i.stack.imgur.com/FQKTS.png When i click on that.Firefox and Internet
I have two grayscale Png files( https://i.stack.imgur.com/8RGh4.jpg ) that I want consider as a
Right Now I have this chart: https://i.stack.imgur.com/xyyNX.png I'd like to get the vertical grid
How would I go about creating a navigation bar which looks like this: https://i.stack.imgur.com/bbaCz.png
Screenshot : https://i.stack.imgur.com/ACTqz.png It is pretty evident that my site renders different on Chrome
I have a client that would like this implemented: https://i.stack.imgur.com/BV0em.png X expandable views each
https://i.stack.imgur.com/2KxdM.png I have this segmented control that I made, however I don't know how
I have a plot like this: https://i.stack.imgur.com/zdike.png I need the data coordinates of points
I want to position these spans in the middle: https://i.stack.imgur.com/3XHhG.png and I can do

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.