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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:19:03+00:00 2026-06-12T21:19:03+00:00

I have my index.php page that sends values over to edit.php via $_GET/html link.

  • 0

I have my index.php page that sends values over to edit.php via $_GET/html link. I can see the values go, including the table ID I want to use using echo statements. The problem is that I need the specific ID value used in another form using a submit form($_POST). I’ve tried different approaches including SESSION, making the $ID = $_GET…. I’m pulling my hair out.

Here is the order of things:

//Edit link on index.php sends the id='summary_id', which works
<td align="center"><a href="edit.php?id=<?php echo $row['summary_id']?>">Edit</a></td>

//Edit.php grabs the variable and I set it to that variable
if(isset($_GET['id']))
echo "<pre>Value of GET \$_GET:</br>";print_r($_GET);echo"</pre>";  
    {
        $summary_id = $_GET['id'];
        $summary_id = $_POST['summary_id'];

But, when I try to use $summary_id in a form (using $_POST this time), I get no value. I’m not sure if what I’m trying to do is “legal”. I’ve tried sending the summary_id as a hidden value in the form, but again, nothing is going through. I’m losing it after that initial $_GET.

  • 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-12T21:19:04+00:00Added an answer on June 12, 2026 at 9:19 pm

    You are doing wrong.You are overwriting the variable that is not available $_POST['summary_id']

    if you really want to use post method use this

    <form action="edit.php" method="POST">
    <input type="hidden" value="<?php echo $row['summary_id'];?>" name="summary_id"/>
    <input type="submit" value="EDIT"/>
    </form>
    

    or you can use header() to post the value

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

Sidebar

Related Questions

I have a index.php page that is the main page. All pages are included
i have a question, i have a index.php page that is the intro of
I have a page index.php that uses a modal to upload files. After those
I have a function that I use on index.php page and I would like
I have a page index.php where i have a link called add_users.php. In add_users.php,
I have form in my html page <form id=login_form method=POST action=index.php> <table> <tr> <td><label
i have alot of get values that define the page the user gonna see
I have my index.php page and just afrer my header i want to include
I have the following scenario. I have a index.php page with the following JQuery
I have an index page index.php , and when the user clicks on a

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.