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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:02:32+00:00 2026-05-24T11:02:32+00:00

I am trying to transfer a variable from the URL into a contact form

  • 0

I am trying to transfer a variable from the URL into a contact form for saving to a MySQL database but don´t know how to do it correctly. SInce my needs are way above my knowledge in PHP and MySQL I am basically hacking a form plugin for rapidweaver which of course is causing all sorts of problems.

Say I have this url: http://www.example.com/index.php?id=200000

and I want to have the “200000” to show up in the form as the input in one of the fields.

I´ll reveal my naivity and complete lack of PHP knowledge by posting my own suggestion:

<input type="hidden" name="form[item_99]" id="item_99" class="fl-hidden" value="<?php echo @check('item_99','hidden','',id); ?>" />

(never mind the form item is set as hidden)

Of course that transfers “id”, not the value of the “url-variable” id. I tried $_get[‘id’]. It transferred nothing.

Any suggestions?

  • 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-24T11:02:34+00:00Added an answer on May 24, 2026 at 11:02 am

    Actually, $_GET['id'] should get the job done, and it’s weird that it wasn’t. Let me test it and post back and example.

    EDIT: After testing locally, this code definitely works.

    <input type="text" value="<?php echo @$_GET['id'] ?>">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to print an ID from MySQL, the field loads into an array
I am trying to transfer data from one page to another but some problem
I'm trying to transfer an SQL query into java from my workbench. I wrote
I am currently trying to add a variable to the url using Server.Transfer. I
I'm trying to transfer data from a DataSet into an Excel workbook. Unfortunately, I
I'm trying to transfer an entire column's worth of data from the backup database
I'm trying to transfer the contents of one list to another, but it's not
I'm trying to transfer some data from Access to SQL Server 2000 (there are
Trying to make a MySQL-based application support MS SQL, I ran into the following
Ultimately I'm trying to transfer buffers from one machine to another. The code below

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.