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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:06:35+00:00 2026-06-03T06:06:35+00:00

I am trying to send over a variable which contains id of a user

  • 0

I am trying to send over a variable which contains id of a user to another page.

First page is the form page where the user enter it’s details and as soon as the submit button is clicked the details are entered into the table,

next the first page redirects to a page where user’s asked to upload it’s display picture, and to store the path to that picture i need the id on that very page i.e. on the image upload page.

Can someone tell me how can i achieve this?

  • 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-03T06:06:37+00:00Added an answer on June 3, 2026 at 6:06 am

    It occurred to me you may actually be asking how you can get the last inserted id from the recently inserted photo you’re adding via mysql. In that case you can use

    $lastId = mysql_insert_id ($yourConnection); 
    

    (details at http://php.net/manual/en/function.mysql-insert-id.php)
    (if you’re using mysqli http://www.php.net/manual/en/mysqli.insert-id.php)

    to find the id. Do this after inserting and before closing the connection. Then pass the id along however when you redirect:

    header('Location: yournextpage.php?id=' . $lastId);
    

    The id will then be available as a GET variable: $_GET[‘id’]

    OR if you’re asking how you can get the id from a form (assuming PHP), do this:

    <form method="get" action="yournextpage.php">
        <input type="text" name="id">User ID here</input>
        <input type="submit" value="Continue"></input>
    </form>
    

    The value of the first input box will be stored as $_GET[‘id’] or whatever you have as the ‘name’ attribute.

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

Sidebar

Related Questions

I am trying to send over a page number to a page using a
I'm trying to send information from a form and a hidden email variable (from
I'm trying to send a scalar value over socket which I have got with
I am trying to send objects over sockets in android emulators. Each emulator sends
I am trying to send a proto over a socket, but i am getting
I'm trying to AES encode data in java, send it over the network and
I'm trying to serialize objects to send over network through a socket using only
I am trying to send over UDP using the following code, but i'm getting
I'm trying to generate form elements with jQuery to send to a Paypal form,
For some mails I'm trying to send over our SMTP server I get entries

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.