<?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[Include variabile]]></title><description><![CDATA[<p dir="auto">Ciao a tutti vorrei fa si che nel mio sito venga incluso un file variabile a seconda del link scelto. Ho provato a fare cosi ma  non funziona cosa devo fare?</p>
<pre><code class="language-php">&lt;ul&gt;
&lt;li&gt;&lt;a href="&lt;?php $mese = "nov08.html";?&gt;"&gt;November 2008&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="&lt;?php $mese = "dec08.html";?&gt;"&gt;Dicember 2008&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="main"&gt;
&lt;div class="padded"&gt;
&lt;?php include "$mese";?&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/topic/90051/include-variabile</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 08:33:56 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/90051.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 14 Dec 2008 12:51:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Include variabile on Mon, 15 Dec 2008 13:18:16 GMT]]></title><description><![CDATA[<p dir="auto">Bene <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";)" alt="😉" /><br />
Alla prossima <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--ciauz" style="height:1.4em;width:auto;vertical-align:middle" title=":ciauz:" alt="" /></p>
]]></description><link>https://dev.connect.gt/post/791964</link><guid isPermaLink="true">https://dev.connect.gt/post/791964</guid><dc:creator><![CDATA[samyorn]]></dc:creator><pubDate>Mon, 15 Dec 2008 13:18:16 GMT</pubDate></item><item><title><![CDATA[Reply to Include variabile on Mon, 15 Dec 2008 13:08:45 GMT]]></title><description><![CDATA[<p dir="auto">Si ora va... l'unica cosa è che dopo "&lt;?" ho dovuto aggiungere php. comunque grazie mille</p>
]]></description><link>https://dev.connect.gt/post/791966</link><guid isPermaLink="true">https://dev.connect.gt/post/791966</guid><dc:creator><![CDATA[sospiro]]></dc:creator><pubDate>Mon, 15 Dec 2008 13:08:45 GMT</pubDate></item><item><title><![CDATA[Reply to Include variabile on Sun, 14 Dec 2008 20:57:09 GMT]]></title><description><![CDATA[<p dir="auto">Ciao sospiro</p>
<p dir="auto">Il link dovrebbe puntare alla stessa pagina, ammettiamo  index.html, e potresti aggiungere all'url il valore dell'include che ti interessa:</p>
<pre><code class="language-html">&lt;a href="index.html?mese=nov08"&gt;Novembre 2008&lt;/a&gt;
&lt;a href="index.html?mese=dec08"&gt;Dicembre 2008&lt;/a&gt;
</code></pre>
<p dir="auto">Ad inizio pagina recuperi il valore dall'url:</p>
<pre><code class="language-php">&lt;?
$mese = $_GET['mese'];
?&gt;
</code></pre>
<p dir="auto">Quindi, se la variabile è valorizzata, procedi all'include:</p>
<pre><code class="language-php">&lt;?
if (empty($mese)===false)
{
   include $mese.".html";
}
?&gt;
</code></pre>
<p dir="auto">Qualcosa del genere dovrebbe andare, facci sapere <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--ciauz" style="height:1.4em;width:auto;vertical-align:middle" title=":ciauz:" alt="" /></p>
]]></description><link>https://dev.connect.gt/post/791962</link><guid isPermaLink="true">https://dev.connect.gt/post/791962</guid><dc:creator><![CDATA[samyorn]]></dc:creator><pubDate>Sun, 14 Dec 2008 20:57:09 GMT</pubDate></item></channel></rss>