How To Send User Input To Php, Excute Sql Command And Display Output From Php
my program works like this. there are three buttons on html page which are linking to three different php files which result in xml, result are based on fixed sql command in oracle
Solution 1:
If you are using jquery (version 1.5 or higher) you can make an ajax call by using this:
var startd = $('input[name="startd"]').val();
$.ajax({
type: "POST",
url: "some.php",
data: "startd="+startd+"&location=Boston",
success: function(grapHtml){
$("#graph").append(graphHtml);
}
});
This makes a post request to some.php. This file will receive $_POST['startd'] and $_POST['location'] values.
Post a Comment for "How To Send User Input To Php, Excute Sql Command And Display Output From Php"