<?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[aiuto con funzione get e post]]></title><description><![CDATA[<p dir="auto">ciao ragazzi... vorrei modificare correttamente questa pagina...</p>
<pre><code class="language-php">&lt;?php

$title = 'Nuovo topic';
require 'pmheader.php';

$sub = (empty($_POST['sub'])) ? "0" : $_POST['sub'];
$txt = (empty($_POST['txt'])) ? "0" : $_POST['txt'];
$forum = (empty($_POST['forum'])) ? "-1" : $_POST['forum'];

echo $header;

if(!$userdata['session_logged_in'])
{
	echo "Spiacente devi essere loggato per postare un nuovo topic. Clicca &lt;anchor&gt;Qui!&lt;go href=\"" . append_sid("waplogin.$phpEx") . "\" /&gt;&lt;/anchor&gt;";
}


else if($sub == "0" || $txt == "0" || $forum == "-1")
{
?&gt;
Oggetto: &lt;input name="sub" type="text" emptyok="false"/&gt;&lt;br/&gt;
Messaggio: &lt;input name="txt" emptyok="false"/&gt;&lt;br/&gt;
Forum: &lt;select name="forum"&gt;
&lt;option value="-1"&gt;Scegli il forum&lt;/option&gt;
&lt;?php
	
	$query = $db-&gt;sql_query("select forum_id,forum_name from ". FORUMS_TABLE . " where forum_status = \"0\" order by cat_id ASC");
	$forum = $db-&gt;sql_fetchrowset($query);
	foreach ($forum as $val)
	{
		$auth = auth(AUTH_ALL,$val['forum_id'],$userdata);
		if($auth['auth_post'])
		{
			echo "&lt;option value=\"".$val['forum_id']."\"&gt;".htmlentities ($val['forum_name'])."&lt;/option&gt;\n";
		}
	}


?&gt;
&lt;/select&gt;&lt;br/&gt;
&lt;anchor&gt;
	Invia&lt;br/&gt;
	&lt;go href="&lt;?php echo append_sid("wapnew.$phpEx?sub=$(sub)&amp;amp;txt=$(txt)&amp;amp;forum=$(forum)"); ?&gt;" method="post"&gt;
		&lt;postfield name="sub" value="$(sub)"/&gt;
		&lt;postfield name="txt" value="$(txt)"/&gt;
		&lt;postfield name="forum" value="$(forum)"/&gt;
	&lt;/go&gt;
&lt;/anchor&gt;
&lt;?php
}
else
{
	$current_time = time();
	$sql = $db-&gt;sql_query("SELECT * FROM " . USERS_TABLE . " WHERE username = '" . str_replace("\'", "''", $userdata['username']) . "'");
	$userdata = $db-&gt;sql_fetchrow($sql);
	$user_id = $userdata['user_id'];
	if( $userdata['user_level'] != ADMIN &amp;&amp; $board_config['board_disable'] )
	{
		echo "Mi spiace ma il forum e\'disattivato. Visita il sito web in un\' altro momento";
	}
	else {
				$sql = "SELECT forum_status FROM " . FORUMS_TABLE . " WHERE forum_id = \"$forum_id\"";
				$query = $db-&gt;sql_query($sql);
				$forum_status = $db-&gt;sql_fetchrow($query);
				$auth = auth(AUTH_ALL,$forum_id,$userdata);
				if ( $forum_status['forum_status'] == FORUM_LOCKED &amp;&amp; !$auth['auth_mod']) 
					{
					$footer = "&lt;br/&gt;&lt;br/&gt;&lt;anchor&gt;Forum Home&lt;go href=\"" . append_sid("wap.$phpEx") . "\" /&gt;&lt;/anchor&gt;".$footer;
					echo "Mi spiace questo forum e\' chiuso. Non puoi postare nel topic.";
					die(" ".$footer);
					}
					else 
					{
						//Flood Control
						$current_time = time();
						$query  = $db-&gt;sql_query("SELECT MAX(post_time) AS last_post_time FROM " . POSTS_TABLE . " WHERE poster_id = \"$user_id\"");
						$flood = $db-&gt;sql_fetchrow($query);
						if ( $flood['last_post_time'] &gt; 0 &amp;&amp; ( $current_time - $flood['last_post_time'] ) &lt; $board_config['flood_interval'] )
						{
							echo "Non puoi inviare un messaggio subito. Aspetta un po e riprova.";
						}
						else
						{
							$txt = $txt." \n\n&lt;i&gt;Scritto da Nokia Mobile Device&lt;/i&gt;";
							$uid = make_bbcode_uid();
							$txt = prepare_wap_post($txt,$uid);
							$time = time();
							$update_topics = $db-&gt;sql_query("insert into " . TOPICS_TABLE . " (forum_id, topic_title, topic_poster, topic_time, topic_views, topic_replies, topic_status, topic_vote, topic_type, topic_first_post_id, topic_last_post_id, topic_moved_id) values (\"$forum\", \"$sub\", \"$user_id\", \"$time\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\",\"0\", \"0\")");
							$topic = $db-&gt;sql_nextid();
							$update_posts = $db-&gt;sql_query("insert into " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig, post_edit_count) values (\"$topic\",\"$forum\",\"".$userdata['user_id']."\",\"$time\",\"".$userdata['user_ip']."\",\"0\",\"0\",\"1\",\"$sig\",\"0\")");
							$post_id = $db-&gt;sql_nextid();
							$update_topics2 = $db-&gt;sql_query("update ". TOPICS_TABLE . " set topic_first_post_id = \"$post_id\", topic_last_post_id = \"$post_id\" where topic_id = \"$topic\"");
							$update_text = $db-&gt;sql_query("insert into " . POSTS_TEXT_TABLE . " (post_id, bbcode_uid, post_subject, post_text) values (\"$post_id\", \"$uid\", \"$sub\", \"$txt\")");
							$update_forums = $db-&gt;sql_query("update " . FORUMS_TABLE . " set forum_posts=forum_posts+1, forum_last_post_id = $post_id, forum_topics=forum_topics+1 where forum_id = \"$forum\"");
							$update_user = $db-&gt;sql_query("update " . USERS_TABLE . " set user_posts=user_posts+1 where user_id = \"$user_id\"");
							echo "Clicca &lt;anchor&gt;Qui!&lt;go href=\"". append_sid("waptopic.$phpEx?topic=$topic&amp;amp;forum=$forum") . "\" /&gt;&lt;/anchor&gt; per vedere il tuo messaggio.";
						}
					}
				}
			}
echo $footer;
?&gt;
</code></pre>
<p dir="auto">com'è ora se invio un messaggio compare nella barra del link...vorrei che non lo facesse...sapete aiutarmi???</p>
<p dir="auto">grazie <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=3abbd2034aa" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://dev.connect.gt/topic/60987/aiuto-con-funzione-get-e-post</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 12:46:46 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/60987.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 Jan 2008 18:03:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to aiuto con funzione get e post on Tue, 22 Jan 2008 22:01:41 GMT]]></title><description><![CDATA[<p dir="auto">Scusami, ho riletto meglio il tuo codice, hai provato a modificarlo così?</p>
<pre><code class="language-php">&lt;go href="&lt;?php echo append_sid(wapnew.$phpEx); ?&gt;" method="post"&gt; 
        &lt;postfield name="sub" value="$(sub)"/&gt; 
        &lt;postfield name="txt" value="$(txt)"/&gt; 
        &lt;postfield name="forum" value="$(forum)"/&gt; 
    &lt;/go&gt;
</code></pre>
<p dir="auto">Dato che hai già tutti e tre i dati nei vari postfield, perchè metterli anche nell'href?:? Non so, forse mi sfugge qualcosa (cosa che non escludo <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/c36abe38-68aa-400b-8fcb-0edee6728a3d-049.gif?v=3abbd2034aa" class="not-responsive emoji emoji-customizations emoji--2" style="height:1.4em;width:auto;vertical-align:middle" title=";))" alt="" /></p>
]]></description><link>https://dev.connect.gt/post/672104</link><guid isPermaLink="true">https://dev.connect.gt/post/672104</guid><dc:creator><![CDATA[samyorn]]></dc:creator><pubDate>Tue, 22 Jan 2008 22:01:41 GMT</pubDate></item><item><title><![CDATA[Reply to aiuto con funzione get e post on Tue, 22 Jan 2008 21:21:33 GMT]]></title><description><![CDATA[<p dir="auto">e se fosse così???</p>
<pre><code class="language-php">&lt;anchor&gt;
	Posta&lt;br/&gt;
	&lt;go href="&lt;?php echo append_sid("wapreply.php?sig=$(sig)&amp;amp;topic=$topic&amp;amp;forum=$forum_id&amp;amp;start=$start&amp;amp;re=$(re)&amp;amp;go=1&amp;amp;quote=$quote&amp;amp;post=$post_id"); ?&gt;" method="post"&gt;

		&lt;postfield name="un" value="$(un)"/&gt;

		&lt;postfield name="pw" value="$(pw)"/&gt;

		&lt;postfield name="re" value="$(re)"/&gt;

		&lt;postfield name="sig" value="$(sig)"/&gt;

	&lt;/go&gt;

&lt;/anchor&gt;
</code></pre>
<p dir="auto">????</p>
]]></description><link>https://dev.connect.gt/post/672101</link><guid isPermaLink="true">https://dev.connect.gt/post/672101</guid><dc:creator><![CDATA[hiwap3]]></dc:creator><pubDate>Tue, 22 Jan 2008 21:21:33 GMT</pubDate></item><item><title><![CDATA[Reply to aiuto con funzione get e post on Tue, 22 Jan 2008 19:42:12 GMT]]></title><description><![CDATA[<p dir="auto">Dipende da casi del genere:</p>
<pre><code class="language-php">.........
......(wapnew.$phpEx?sub=$(sub)&amp;amp;txt=$(txt)&amp;amp;forum=$(forum)"); ?&gt;"
........
</code></pre>
<p dir="auto">Non puoi far molto lasciandola così dato che invii via url i parametri, posso consigliarti, dato che il form usa il method=POST, di memorizzarti il tutto in hidden data:</p>
<pre><code class="language-php">&lt;input type="hidden" name="sub" value="&lt;?=$sub ?&gt;"&gt;
&lt;input type="hidden" name="txt" value="&lt;?=$txt ?&gt;"&gt;
............
</code></pre>
<p dir="auto">Puoi provare così <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=3abbd2034aa" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
]]></description><link>https://dev.connect.gt/post/672103</link><guid isPermaLink="true">https://dev.connect.gt/post/672103</guid><dc:creator><![CDATA[samyorn]]></dc:creator><pubDate>Tue, 22 Jan 2008 19:42:12 GMT</pubDate></item></channel></rss>