google.visualization.Query - HTTP POST instead of GET?

24 views
Skip to first unread message

Arthur Conde

unread,
Mar 8, 2018, 10:07:42 PM3/8/18
to Google Visualization API
Is it possible to have google.visualization.Query perform a POST request instead of a GET request?

Brandon Matthews

unread,
Mar 8, 2018, 11:40:02 PM3/8/18
to Google Visualization API
Yes....yes it is.

Make a search box and try this...


If(isset($_POST['query'])) {
$query = $_POST['query'];
$query = preg_replace("#[^a-z]#i","",$query);
$query = strrouoper($query);
$query = htmlspecialchars($query);
$query = mysql_real_escape_string($query);
};

Brandon Matthews

unread,
Mar 8, 2018, 11:47:04 PM3/8/18
to Google Visualization API
Oh..then create a command of course using 'query' like Select * FROM 'database' WHERE "some database column"" ='$QUERY';
Reply all
Reply to author
Forward
0 new messages