var query = Form.serialize("feed_add_form");
- xmlhttp.open("GET", "backend.php?" + query, true);
+/* xmlhttp.open("GET", "backend.php?" + query, true);
xmlhttp.onreadystatechange=dlg_frefresh_callback;
- xmlhttp.send(null);
+ xmlhttp.send(null); */
+
+ xmlhttp.open("POST", "backend.php", true);
+ xmlhttp.onreadystatechange=dlg_frefresh_callback;
+ xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
+ xmlhttp.send(query);
return false;
}
if (!WEB_DEMO_MODE) {
- $feed_url = db_escape_string(trim($_GET["feed_url"]));
- $cat_id = db_escape_string($_GET["cat_id"]);
- $p_from = db_escape_string($_GET["from"]);
+ $feed_url = db_escape_string(trim($_POST["feed_url"]));
+ $cat_id = db_escape_string($_POST["cat_id"]);
+ $p_from = db_escape_string($_POST["from"]);
if ($p_from != 'tt-rss') {
print "<html>