title: Sending and receiving AJAX requests with jQuery and PHP
body: <p>I'm trying to send an AJAX request to a page to interpret some data, and if it complies with what i'm looking for, send another AJAX request back. Right now I can see the first request is being made, but I'm not getting one back</p>
  
  <pre><code>//message.php
  &lt;head&gt;
  &lt;script&gt;
  function org_name(str){
      alert(str); //this alert appears, so I know the data is being received by this function
      $.get("common_functions.php", { group_name: str} );
  }
  &lt;/script&gt;
  &lt;/head&gt;    
  </code></pre>
  
  <p>Then, on common_functions.php I have a similar request back, however, I'm not sure exactly what the issue is. The alert box doesn't even appear so I'm confused as to why the console would say the request was sent</p>
  
  <pre><code>//common_functions.php
  
  if(isset($_GET['group_name'])){
    ?&gt;
    &lt;script src="http://code.jquery.com/jquery-1.8.2.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
    alert('common_functions'); //this does not appear
    $.get("message.php", { name: "test"} );
    &lt;/script&gt;
    &lt;?
  }
  </code></pre>
  
  <p>When I open up the javascript console in chrome I see the request sent form message to common_functions, but apparently the request on common_functions isn't sending one back</p>
  
  <pre><code>//text from javascript console
  Request URL:http://localhost/message/common_functions.php?group_name=test
  Request Method:GET
  Status Code:200 OK
  </code></pre>
  
  <p>Does anyone see something obvious that I'm doing wrong or missing? If it makes a difference, common_functions is included in message.php because I do use some other functions from that page for my php.</p>