 <p>You seem to be using JQuery correctly. The Javascript to extract the value and the send the GET request should be working.</p> <p>Your misunderstanding lies in how you check if the PHP file has received the request. This redirect</p> <pre><code>location.href = "leaderprofile.php"; </code></pre> <p>Will not provide you any information about the GET request that you just made. Instead you can try:</p> <pre><code>location.href = "leaderprofile.php?lname=" + $("#gopal").val() </code></pre> <p>To verify that your PHP and Javascript is performing as expected. If you see the values that you expect then I believe you have confirmed two things:</p> <ul> <li>successfully extracted the correct value from the textbox</li> <li>GET request is succeeding, and the success callback is being invoked</li> </ul>