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

  • Home
  • SEARCH
  • 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 7884477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:48:36+00:00 2026-06-03T04:48:36+00:00

I wanna make option edit product when user login. Here is the link when

  • 0

I wanna make option edit product when user login.
Here is the link when user click edit on the web.

 <a href="edit.php?id=<?php $id=$data['gameId'];echo $id;?>" ><input type="button" value="Edit"/></a>

Then in edit page, there’s submit button, that I fill with some validation in doUpdate.php I tried to get id from URL in doUpdate.php to make an update in database (Id is the primary key, I use my sql as database) so I use this code

  $id= $_GET['id'];

The problem is, why $id couldn’t take the id value from the url? How should I fixed that? (It is not hosting yet, I use localhost cause I’m still learning)

  • 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-03T04:48:38+00:00Added an answer on June 3, 2026 at 4:48 am

    If I’m understanding you correctly the problem isn’t getting the id in edit.php, but getting the id in doUpdate.php. Presumably your edit page is POSTing date to the doUpdate page, in which case you need to do two things.

    firstly inside your form on the edit page you’ll need to add a hidden element inside you formcontaining the id you want to pass to doUpdate.php

    <input type="hidden" name="id" value="<?php echo $_GET['id']; ?>"/>
    

    and then in doUpdate.php fetch it from the $_POST global

    $id = $_POST['id'];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How should I go about parsing a url in php? I wanna make it
Got a chart control i wanna make from a data table. the table looks
I make login in my main activity. If the login is correct, I wanna
I wanna make a program automatically tagger the text in a directory. Here's my
i wanna make really sure, that a user can upload large files to my
I have lots of data in database and I wanna make a statistics from
im new in android programming.. i have a problem here. i wanna make an
i've built my first wpf application, nothing fancy, but i wanna make it look
I will make upload my application today to my homepage and wanna to have
Hi guys i am going to make a android game. i wanna know that

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.