X-Received: by 10.31.56.202 with SMTP id f193mr1899985vka.35.1482417831536; Thu, 22 Dec 2016 06:43:51 -0800 (PST) X-Received: by 10.157.32.168 with SMTP id x37mr871572ota.7.1482417831485; Thu, 22 Dec 2016 06:43:51 -0800 (PST) Path: csiph.com!weretis.net!feeder6.news.weretis.net!news.glorb.com!p16no1864684qta.1!news-out.google.com!c1ni8809itd.0!nntp.google.com!b123no2725153itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: it.comp.lang.javascript Date: Thu, 22 Dec 2016 06:43:51 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=82.59.65.215; posting-account=UsbOcQoAAADpxNtYUgCAp-4IldhEgoBn NNTP-Posting-Host: 82.59.65.215 References: <75a2d5df-c48f-4847-8f1c-5f31d021a703@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1d4a7074-2a60-4a67-9327-9e85e4a55d7c@googlegroups.com> Subject: Re: query php e ajax From: fmigliori@gmail.com Injection-Date: Thu, 22 Dec 2016 14:43:51 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: csiph.com it.comp.lang.javascript:8158 >$cat=3D"SELECT * FROM sysambient INNER JOIN system ON=20 >sysambient.idSystem=3Dsystem.idsystem WHERE idSystem=3D'$ida' ";=20 $ida va sanitizzata prima di usarla nella query, altrimenti consenti attacchi malevoli. Lo so che questa pagina la userai solo tu, ma poi diventa una cattiva abitu= dine. Ajax gestisce sia get che post, il metodo get =C3=A8 molto intuitivo: $("#cbox").load("getAmbientLog.php?arg=3Dval");=20 Sempre se ho capito dove ti sei fermato.