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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:44:21+00:00 2026-06-02T20:44:21+00:00

I have a website, where once a button is clicked it will trigger some

  • 0

I have a website, where once a button is clicked it will trigger some javascript actions. I want to get some data via a php script i have written. I am using this method:

$.get("get_uni_info.php?addressToSearch=" + address, address, function(myData)
{
    $.each(myData, function(key, value) 
    {
        console.info(value);
    })
}, "json");

Inside the php code I am trying to get the value “address” to be able to search my database and send back some data but everything I just get nothing returned. I have test to the php code and it will return data if artificial measures are put in place so I can tell its not my PHP code.

Am i going wrong in my jQuery?

  • 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-02T20:44:22+00:00Added an answer on June 2, 2026 at 8:44 pm

    Possibly the problem is in usage of $.get method.

    You should write either

    $.get("get_uni_info.php?addressToSearch=" + address, function(myData) {
        ...
    }, "json");
    

    or

    $.get("get_uni_info.php", { addressToSearch : address }, function(myData) {
        ...
    }, "json");
    

    PHP code should handle address as:

    $address = $_GET['addressToSearch'];
    

    EDIT: If this does not help, we need to have a look at your PHP code (the response part precisely) to know where is the exact problem.

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

Sidebar

Related Questions

I am trying to program a counter into a website via JavaScript and have
i have website of application which sells applications online.on the home page i want
I have a website with friendly urls. I want all url´s that end with
I have a website I want to regexp on, say http://www.ru.wikipedia.org/wiki/perl . The site
I have a button edit in every article, once the author of this article
I would like to scrape some dynamic data off of a website. On the
I have a website with a form that uses PHP to send the form
I currently have a website built in PHP, I'm hoping to build a referral
I have few import statements in my index.php file. The website is bit slow
I have a form which once the Submit button is pressed, it goes to

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.