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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:45:02+00:00 2026-05-27T21:45:02+00:00

is it possible to use GET or something like this to load a record

  • 0

is it possible to use GET or something like this to load a record into a form ?.

E.g I have for formA where it has a foreach list of all the clients in the DB , at the end of each row I have a link which is called ‘edit’ , this link goes to formB.php and is set out like this >>

sitename.com/FormB.php?token=<?php echo $ID ?>

This gives you an url that looks like the following :

http://www.sitename.com/formB.php?token=25

The link above would for example load the record with ID 25 into the second form.

I am not sure how to handle the link in the second form though, can you echo GET ID in the second form, or would it have to be GET token ?.

  • 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-27T21:45:03+00:00Added an answer on May 27, 2026 at 9:45 pm

    In PHP, there’s the predefined $_GET variable. This is basically an array holding all GET paremeters:

    // url = index.php?foo=bar&hello=world
    
    echo $_GET['foo']; // bar
    echo $_GET['hello']; // world
    

    So, considering your url and query:

    $query = 'SELECT * FROM `table` WHERE `token`=' . $_GET['token'];
    

    To avoid security exploits, we need to use the function mysql_real_escape_string around the user-defined parameter when using strings. When using other types such as numbers you can just parse it to a number.

    // if token is a number
    $query = 'SELECT * FROM `table` WHERE `token`=' . intval($_GET['token']);
    
    // if token is a string
    $query = 'SELECT * FROM `table` WHERE `token`=' . mysql_real_escape_string($_GET['token']);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to get the value from a JavaScript variable and use this
I have recently started looking into Google Charts API for possible use within the
I have some code that looks something like this: <head runat="server"> <script type="text/javascript"> var
How is it possible to get/use/return a thread from an execute queue ( =
Is it possible to use Java FutureTask with a Spring TaskExecutor to get a
Is it possible to use the .NET configuration objects to get at .config files
Is it possible to use Runtime.getRuntime().exec(cmd.exe); in gwt? When I compile it, I get
Is it possible to get gdb or use some other tools to create a
Is it possible to load an external HTML file into a variable and then
Is it possible to use some kind of attribute to throw an exception. This

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.