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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:46:09+00:00 2026-05-14T06:46:09+00:00

Another lame question So, I have a site that displays several students’ requests to

  • 0

Another lame question

So, I have a site that displays several students’ requests to change advisors, with an Approve and Deny button for each student. Then I have a Javascript pop-up that confirms the decision when clicked on either button, and it will also e-mail the student about this decision. This should all be on one page as well.

How do I specify which student I will update and e-mail to? I know the query will be like $query = “UPDATE student set current_advisor = “.$requested_advisor.” where SID = “.$sid, but how do I specify which student I’m doing this for?

I have only worked with php forms, where you have the user type in the information, but in this case, all the data is there already…

  • 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-14T06:46:09+00:00Added an answer on May 14, 2026 at 6:46 am

    $sid is the id of the student you want to update… It depends how you’re building the page. You can either insert a form for each student, as follows:

    // for each student
    <form method="post">
      <input type="hidden" value="the-sid" name="SID"/>
      <input type="submit" value="confirm" name="type" onclick="return confirm('Sure?');"/>
      <input type="submit" value="deny" name="type" onclick="return confirm('Sure?');"/>
    </form>
    // end for each
    

    Then when the user clicks either approve or deny, you’re $_POST array in PHP will be filled with:

    array("SID"=> $theSID, "type" => "confirm or deny");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Another question related to this one . I have a List<SortableObjects> that is the
So, I lifted this nice AJAX code from another site. Problem is that I
Yet another simple question about unit testing model objects that uses data access layer.
another newbie-question regarding rails and bootstrap. I am using something like this: <div class=tabbable
another problem. I have already placed my Jython.jar into what my computer recognizes as
Another git question... I am in the following situation: A1 ---- B1 ---- C1
Another SO thread explains how to use thread::native_handle to do things that are outside
Another clipboard question: When text is put onto the clipboard, it frequently goes in
Warning: I don't have much experience with CodeIgniter and I am updating a site
Another Umbraco question, apologies. I've created a new template in the Master templates list,

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.