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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:44:42+00:00 2026-06-07T01:44:42+00:00

Overview – you click on a button(on a javascript page), that will send a

  • 0

Overview – you click on a button(on a javascript page), that will send a request to a php page to pull up a specific array, then that array should be sent back to the javascript page. When that array is passed into the javascript page, I need to pass it into a function for use. Does anyone know of what to do.

What I am currently doing is below –

<form action="GetTest.php" method="post">
    Something: <input id = "something" input type="submit" name="q" on/>
</form>

When i click on submit, I am redirected to my php page which has the array I need(which is expected), but I don’t know what to do from there onwards. Any help on this will be very much appreciated.

  • 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-07T01:44:44+00:00Added an answer on June 7, 2026 at 1:44 am

    First off, handle the HTML so that you aren’t passing it over to the PHP form at all (staying on the page):

    Changing:

    <form action="GetTest.php" method="post">
        Something: <input id = "something" input type="submit" name="q" on/>
    </form>
    

    To:

        Something: <input id = "something" input type="submit" name="q" on/>
    

    Then, look into jQuery’s AJAX functionality:

    $("#something").click(function() {
        $.ajax({
          url: 'GetTest.php',
          type: 'POST',
          success: function(data){
            alert('success');
          },
          error: function(){
            alert('failure');
          }
        });
    });
    

    You can retrieve the POST data from GetTest.php and transfer it directly through Javascript as a result.

    Good luck!

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

Sidebar

Related Questions

Overview: I'm trying to design an application that will encrypt files to safely send
Overview I am working on building a Kynetx ruleset that will find a bunch
Overview: I have an array of 20 byte strings that needs to be stored
Overview I am generating a four page PDF document in an iPad application that
Overview: I am looking to create a site that will centralize a lot of
Overview I have an iOS app which sends local notifications at specific dates. I
Overview: I have an advancedDataGrid that I am using a GroupingCollection on and I
Overview Are there explanations for Control.BeginInvoke() to not execute a delegate that it is
Overview I want to be able to modify request parameters and content to 3rd
Overview: I have two pages in my program; the main page and the other

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.