<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[slash]]></title><description><![CDATA[<p dir="auto">ciao a tutti, e scusatemi per la banalità della domanda<br />
dopo vari tentativi, mi sono deciso a scrivervi</p>
<p dir="auto">ho un form dove faccio inserire una parola, se la text è vuota<br />
invio il seguente messaggio di prova "l'aereo"</p>
<pre><code class="language-php">require 'Config.php';
require 'Connect.php';
if(isset($_POST['txttitolo']))
 {
  $titolo=trim($_POST['txttitolo']);
  if(get_magic_quotes_gpc())
    {
     $titolo=stripslashes($titolo);
    }   
     $titolo=htmlspecialchars($titolo);
     $titolo=mysql_real_escape_string($titolo);
  if($titolo=="")
   {
    $notice=urlencode("l'aereo"); 
    header('location:'.'../frm_titolo.php'.'?msg='.$notice);
    exit;
   }
  
  $query_contatto="INSERT INTO tab_titolo SET
  titolo='$titolo'";
  $result_query=mysql_query($query_contatto)or die("errore nella query;".mysql_error());
  if($result_query)
   {
    $notice=urlencode("Dati salvati correttamante"); 
    header('location:'.'../frm_titolo.php'.'?msg='.$notice);
    exit;
   }
 }
</code></pre>
<p dir="auto">il messaggio mi arriva richiamando la pagina frm_titolo.php</p>
<pre><code class="language-php">&lt;?php
 if(isset($_GET['msg']))
  {
   echo "&lt;td colspan='3'&gt;
     &lt;font face='Verdana' size='1' color='#3333FF'&gt;" . $_GET['msg'] . "&lt;/font&gt;
    &lt;/td&gt;";
  }
?&gt;
</code></pre>
<p dir="auto">il problema che ho è lo slash che mi appare insieme all'apostrofo,<br />
ho pensato forse dovrei fare anche qui il controllo del magic_quotes_gpc?</p>
<p dir="auto">gazie di una vostra risposta</p>
]]></description><link>https://dev.connect.gt/topic/81131/slash</link><generator>RSS for Node</generator><lastBuildDate>Thu, 03 Dec 2026 05:44:56 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/81131.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 Sep 2008 13:00:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to slash on Tue, 02 Sep 2008 12:24:37 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><strong>ilnetsurfer</strong></p>
<p dir="auto">Puoi provare sia con stripslashes($_GET['message'])<br />
Oppure con htmlentities($notice,ENT_QUOTES) e poi lo mandi con urlencode</p>
</blockquote>
<p dir="auto">ciao, grazie la prima è stata + che suffuciente</p>
<pre><code class="language-php">stripslashes($_GET['msg'])
</code></pre>
<p dir="auto">grazie di nuovo  ciao da danny</p>
]]></description><link>https://dev.connect.gt/post/754526</link><guid isPermaLink="true">https://dev.connect.gt/post/754526</guid><dc:creator><![CDATA[danny1975]]></dc:creator><pubDate>Tue, 02 Sep 2008 12:24:37 GMT</pubDate></item><item><title><![CDATA[Reply to slash on Tue, 02 Sep 2008 09:32:10 GMT]]></title><description><![CDATA[<p dir="auto">Puoi provare sia con stripslashes($_GET['message'])<br />
Oppure con htmlentities($notice,ENT_QUOTES) e poi lo mandi con urlencode</p>
]]></description><link>https://dev.connect.gt/post/754523</link><guid isPermaLink="true">https://dev.connect.gt/post/754523</guid><dc:creator><![CDATA[ilnetsurfer]]></dc:creator><pubDate>Tue, 02 Sep 2008 09:32:10 GMT</pubDate></item><item><title><![CDATA[Reply to slash on Tue, 02 Sep 2008 08:41:20 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><strong>ilnetsurfer</strong></p>
<p dir="auto">prova con stripslashes($testo)</p>
</blockquote>
<p dir="auto">ciao, sto provando, a mettere questa funzione in entrambe le pagine, ma non va, / non riesco a toglierlo</p>
<p dir="auto">tu come dici stripslashes dove devo inserirlo per evitare che il messaggio abbia lo /</p>
<p dir="auto">questo mi accade sul web, perchè in locale va bene</p>
<p dir="auto">ciao</p>
]]></description><link>https://dev.connect.gt/post/754525</link><guid isPermaLink="true">https://dev.connect.gt/post/754525</guid><dc:creator><![CDATA[danny1975]]></dc:creator><pubDate>Tue, 02 Sep 2008 08:41:20 GMT</pubDate></item><item><title><![CDATA[Reply to slash on Mon, 01 Sep 2008 13:13:20 GMT]]></title><description><![CDATA[<p dir="auto">prova con stripslashes($testo)</p>
]]></description><link>https://dev.connect.gt/post/754520</link><guid isPermaLink="true">https://dev.connect.gt/post/754520</guid><dc:creator><![CDATA[ilnetsurfer]]></dc:creator><pubDate>Mon, 01 Sep 2008 13:13:20 GMT</pubDate></item></channel></rss>