alicefreak Posted September 27, 2010 Share Posted September 27, 2010 Hello guys, I want to pass php variable to ajax. My whole script is working correctly. var age = document.getElementById('$age').value; queryString = "?age=" + age ; ajaxRequest.open("GET", "ajax-example.php" + queryString, true); ajaxRequest.send(null); . I know its wrong. Please help. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/214539-pass-php-variable-to-ajax/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.