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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:34:09+00:00 2026-06-15T16:34:09+00:00

I have a php file in which a GET a variable from another PHP

  • 0

I have a php file in which a GET a variable from another PHP file.Now I want to pass this variable to another PHP file which is given inside Javascript. How can I do that? Here is the code from Uploadify

<head>


<script type="text/javascript" src="uploadifyit/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="uploadifyit/swfobject.js"></script>
<script type="text/javascript" src="uploadifyit/jquery.uploadify.v2.1.4.min.js">     
<script type="text/javascript">

$(document).ready(function() {

//alert('I am ready to use uploadify!');
$("#file_upload").uploadify({
    'uploader': 'uploadifyit/uploadify.swf',
    'script': 'uploadifyit/uploadify.php',
    'cancelImg': 'uploadifyit/cancel.png',
    'folder': 'uploads',
    'auto': false, // use for auto upload
    'multi': true,
    'queueSizeLimit': 200,
    'onQueueFull': function(event, queueSizeLimit) {
        alert(" You can upload " +    queueSizeLimit + " files at once");
        return false;
    },
    'onComplete': function(event, ID, fileObj, response, data) {
        // you can use here jQuery AJAX method to send info at server-side.
        $.post("insert.php", { name: fileObj.name},   function(info) {
            alert(info); // alert UPLOADED FILE NAME
        });
    }
     });

        });

       </script>

      </head>

      <body>
      <?php
      $tabname=$_GET['tabname'];
      ?>

      <form id="form1" name="form1" action="">
      <input type="file" id="file_upload" name="file_upload" /><br />
       <a href="javascript:$('#file_upload').uploadifyUpload();">Upload File</a>
      </form>
      </body>
      </html>

See the section, $tabname is the variable I want to use in insert.php. I need to pass this $tabname to insert.php and use it within that..Thanks in advance

  • 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-15T16:34:11+00:00Added an answer on June 15, 2026 at 4:34 pm

    You can use the script data tag:

    'scriptData'     :{
        'variable1': '<?php echo $_GET["variable1"]; ?>',
        'variable2': '<?php echo $_GET["variable2"]; ?>'
    },
    

    Or, why don’t you store the variables in a $_COOKIE or $_SESSION variable? You can access these variables in the other script without needing to pass anything.

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

Sidebar

Related Questions

I have a variable inside my php file, which I want to pass to
i have a php file which stores a variable, and i need to create
I have a php file which checks for login and password from users database,
I have a php file which has a require_once Statement (?) this file is
I'm trying to get some data from a PHP file which only gives a
I have a html file which select images from user's computer.code is given bellow
I am trying to post the $GLABALS variable to another php file and get
I'm having problem with global variable in PHP. I have mysqli config file which
So I have a .htaccess file which is performing a rewrite from /testscript1.php/testvar1/testvar2 to
I have a php file which needs to be executed in CLI from my

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.