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 Link to comment https://forums.phpfreaks.com/topic/214539-pass-php-variable-to-ajax/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.