<?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[Controllo lunghezza minima form su wordpress]]></title><description><![CDATA[<p dir="auto">Ciao, sto cercando una funzione php o un plugin da inserire in modo tale che possa fare un controllo su un modulo di testo che carica un visitatore.<br />
In un form (ad esempio fatto con mm forms su wp) ho un campo di testo e vorrei che fosse lungo almeno 500 caratteri, ad esempio.<br />
Come posso fare?<br />
Grazie a chi mi saprà rispondere.<br />
<img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=12b9555a9a1" 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/156041/controllo-lunghezza-minima-form-su-wordpress</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 23:48:07 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/156041.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Aug 2011 21:30:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Wed, 10 Aug 2011 17:24:50 GMT]]></title><description><![CDATA[<p dir="auto">Ho impostato così</p>
<pre><code class="language-php">if ($_POST[$name]=="your-message")
</code></pre>
<p dir="auto">Per questo form</p>
<pre><code class="language-php">&lt;form action="/prova/#outcome_msg" method="post" class="mmf-form" enctype="multipart/form-data"&gt;
&lt;input type="hidden" name="_mmf" value="1" /&gt;&lt;input type="hidden" name="_mmf_success_url" value="" /&gt;
&lt;input type="hidden" name="_mmf_failure_url" value="" /&gt;&lt;input type="hidden" name="_mmf_unit_tag" value="mmf-f1-p459-o1" /&gt;
&lt;input type="hidden" name="page_post_id" value="459" /&gt;
&lt;input type="hidden" name="page_post_title" value="prova" /&gt;
&lt;p&gt;&lt;label&gt;Your Name (required)&lt;br /&gt;
    &lt;span class="mmf-form-control-wrap your-name"&gt;&amp;nbsp;&lt;input type="text"  name="your-name" value="" class="mmf-validates-as-required" size="40" /&gt;&lt;/span&gt; &lt;/label&gt;&lt;/p&gt;
&lt;p&gt;&lt;label&gt;Your Email (required)&lt;br /&gt;
    &lt;span class="mmf-form-control-wrap your-email"&gt;&amp;nbsp;&lt;input type="text"  name="your-email" value="" class="mmf-validates-as-email mmf-validates-as-required" size="40" /&gt;&lt;/span&gt; &lt;/label&gt;&lt;/p&gt;
&lt;p&gt;&lt;label&gt;Subject&lt;br /&gt;
    &lt;span class="mmf-form-control-wrap your-subject"&gt;&amp;nbsp;&lt;input type="text"  name="your-subject" value="" size="40" /&gt;&lt;/span&gt; &lt;/label&gt;&lt;/p&gt;
&lt;p&gt;&lt;label&gt;Your Message&lt;br /&gt;
    &lt;span class="mmf-form-control-wrap your-message"&gt;&lt;textarea name="your-message" cols="40" rows="10"&gt;&lt;/textarea&gt;&lt;/span&gt; &lt;/label&gt;&lt;/p&gt;
&lt;p&gt;&lt;input type="submit" value="Send" /&gt; &lt;img class="ajax-loader" style="visibility: hidden;" alt="ajax loader" src="nomedominio/wp-content/plugins/mm-forms-community/images/ajax-loader.gif" /&gt;&lt;/p&gt;
&lt;/form&gt;
</code></pre>
<p dir="auto">Ma purtroppo non funziona. Non da errore ma non funziona e non arriva l'email dei dati del form.</p>
]]></description><link>https://dev.connect.gt/post/1018750</link><guid isPermaLink="true">https://dev.connect.gt/post/1018750</guid><dc:creator><![CDATA[marta.de.angelis]]></dc:creator><pubDate>Wed, 10 Aug 2011 17:24:50 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Wed, 10 Aug 2011 15:47:51 GMT]]></title><description><![CDATA[<p dir="auto">Mi è sfuggita una parentesi graffa nel copia/incolla<br />
il codice è quindi:</p>
<pre><code class="language-php">function validate2($contact_form)
     {
        $fes = $this-&gt;form_elements($contact_form['form'], false);
        $valid = true;
        $reason = array();

        foreach ($fes as $fe) {
            $type = $fe['type'];
            $name = $fe['name'];
            $values = $fe['values'];

            // Before validation corrections
            if (preg_match('/^(?:text|email)
[*]?$/', $type))
            $_POST[$name] = trim(strtr($_POST[$name], "\n", " "));

            if (preg_match('/^(?:select|checkbox|radio)
[*]?$/', $type)) {
                if (is_array($_POST[$name])) {
                    foreach ($_POST[$name] as $key =&gt; $value) {
                        if (! in_array($value, $values)) // Not in given choices.
                        unset($_POST[$name][$key]);
                    }
                } else {
                    if (! in_array($_POST[$name], $values)) //  Not in given choices.
                    $_POST[$name] = '';
                }
            }

            if ('acceptance' == $type)
            $_POST[$name] = $_POST[$name] ? 1 : 0;

            // Required item (*)
            if (preg_match('/^(?:text|textarea|checkbox)
[*]$/', $type)) {
                if (empty($_POST[$name])) {
                    $valid = false;
                    $reason[$name] = $this-&gt;message('invalid_required');
                }
                else{
                    if ($_POST[$name]=="nome_Campo_da_Validare")
                    {
                        $lunghezza_minima=500; //500caratteri inclusi spazi e punteggiatura
                        if(strlen($_POST[$name])&lt;$lunghezza_minima)
                        {  $valid = false;
                        $reason[$name] = "Il testo inserito &amp;egrave; troppo corto";
                        }
                    }
                }

                if ('select*' == $type) {
                    if (empty($_POST[$name]) ||
                    ! is_array($_POST[$name]) &amp;&amp; '---' == $_POST[$name] ||
                    is_array($_POST[$name]) &amp;&amp; 1 == count($_POST[$name]) &amp;&amp; '---' == $_POST[$name][0]) {
                        $valid = false;
                        $reason[$name] = $this-&gt;message('invalid_required');
                    }
                }

                if (preg_match('/^email
[*]?$/', $type)) {
                    if ('*' == substr($type, -1) &amp;&amp; empty($_POST[$name])) {
                        $valid = false;
                        $reason[$name] = $this-&gt;message('invalid_required');
                    } elseif (! empty($_POST[$name]) &amp;&amp; ! is_email($_POST[$name])) {
                        $valid = false;
                        $reason[$name] = $this-&gt;message('invalid_email');
                    }
                }

                if (preg_match('/^captchar$/', $type)) {
                    $captchac = '_mmf_captcha_challenge_' . $name;
                    if (! $this-&gt;check_captcha($_POST[$captchac], $_POST[$name])) {
                        $valid = false;
                        $reason[$name] = $this-&gt;message('captcha_not_match');
                    }
                    $this-&gt;remove_captcha($_POST[$captchac]);
                }
            }

            return compact('valid', 'reason');
        }
     }
</code></pre>
<p dir="auto">ho corretto anche il post precedente <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="😉" /></p>
]]></description><link>https://dev.connect.gt/post/1018728</link><guid isPermaLink="true">https://dev.connect.gt/post/1018728</guid><dc:creator><![CDATA[cardy]]></dc:creator><pubDate>Wed, 10 Aug 2011 15:47:51 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Tue, 09 Aug 2011 18:15:07 GMT]]></title><description><![CDATA[<p dir="auto">Per ora sto ricevendo</p>
<p dir="auto"><strong>Parse error</strong>:  syntax error, unexpected T_VAR</p>
<p dir="auto">qui mi sembra:</p>
<p dir="auto">var $__form_id = 0;<br />
function set_formid($form_id){</p>
<pre><code>        $this-&gt;__form_id =  $form_id;
        
}
</code></pre>
<p dir="auto">Come mai?</p>
<p dir="auto">Grazie<br />
<img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=12b9555a9a1" 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/post/1018749</link><guid isPermaLink="true">https://dev.connect.gt/post/1018749</guid><dc:creator><![CDATA[marta.de.angelis]]></dc:creator><pubDate>Tue, 09 Aug 2011 18:15:07 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Tue, 09 Aug 2011 16:18:50 GMT]]></title><description><![CDATA[<p dir="auto">Ciao marta_de_angelis,<br />
puoi provare ad utilizzare il codice qui sotto:</p>
<pre><code class="language-php">function validate($contact_form) {
        $fes = $this-&gt;form_elements($contact_form['form'], false);
        $valid = true;
        $reason = array();

        foreach ($fes as $fe) {
            $type = $fe['type'];
            $name = $fe['name'];
            $values = $fe['values'];
            
            // Before validation corrections
            if (preg_match('/^(?:text|email)
[*]?$/', $type))
                $_POST[$name] = trim(strtr($_POST[$name], "\n", " "));
            
            if (preg_match('/^(?:select|checkbox|radio)
[*]?$/', $type)) {
                if (is_array($_POST[$name])) {
                    foreach ($_POST[$name] as $key =&gt; $value) {
                        if (! in_array($value, $values)) // Not in given choices.
                            unset($_POST[$name][$key]);
                    }
                } else {
                    if (! in_array($_POST[$name], $values)) //  Not in given choices.
                        $_POST[$name] = '';
                }
            }
            
            if ('acceptance' == $type)
                $_POST[$name] = $_POST[$name] ? 1 : 0;
            
            // Required item (*)
            if (preg_match('/^(?:text|textarea|checkbox)
[*]$/', $type)) {
                if (empty($_POST[$name])) {
                    $valid = false;
                    $reason[$name] = $this-&gt;message('invalid_required');
                }
else{
  if ($_POST[$name]=="nome_Campo_da_Validare")
 {
$lunghezza_minima=500; //500caratteri inclusi spazi e punteggiatura
if(strlen($_POST[$name])&lt;$lunghezza_minima)
                  {  $valid = false;
                    $reason[$name] = "Il testo inserito &amp;egrave; troppo corto";
                }
}
            }
            
            if ('select*' == $type) {
                if (empty($_POST[$name]) ||
                        ! is_array($_POST[$name]) &amp;&amp; '---' == $_POST[$name] ||
                        is_array($_POST[$name]) &amp;&amp; 1 == count($_POST[$name]) &amp;&amp; '---' == $_POST[$name][0]) {
                    $valid = false;
                    $reason[$name] = $this-&gt;message('invalid_required');
                }
            }

            if (preg_match('/^email
[*]?$/', $type)) {
                if ('*' == substr($type, -1) &amp;&amp; empty($_POST[$name])) {
                    $valid = false;
                    $reason[$name] = $this-&gt;message('invalid_required');
                } elseif (! empty($_POST[$name]) &amp;&amp; ! is_email($_POST[$name])) {
                    $valid = false;
                    $reason[$name] = $this-&gt;message('invalid_email');
                }
            }

            if (preg_match('/^captchar$/', $type)) {
                $captchac = '_mmf_captcha_challenge_' . $name;
                if (! $this-&gt;check_captcha($_POST[$captchac], $_POST[$name])) {
                    $valid = false;
                    $reason[$name] = $this-&gt;message('captcha_not_match');
                }
                $this-&gt;remove_captcha($_POST[$captchac]);
            }
        }
            
        return compact('valid', 'reason');
    }  
}
</code></pre>
<p dir="auto">Non ho testato il codice ma mi sembra possa funzionare. Puoi personalizzare</p>
<pre><code class="language-php">$lunghezza_minima
</code></pre>
<p dir="auto">a seconda della lunghezza necessaria.<br />
Questa riga invece</p>
<pre><code class="language-php"> if ($_POST[$name]=="nome_Campo_da_Validare")
</code></pre>
<p dir="auto">va modificata sostituendo nome_Campo_da_Validare con il valore "name" dell'input type='text' o della textarea<br />
contenente la descrizione.<br />
Naturalmente questa modifica andrà replicata ogni volta che aggiornerai il plugin. <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 />
Fammi sapere se funziona tutto. <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="😉" /></p>
]]></description><link>https://dev.connect.gt/post/1018727</link><guid isPermaLink="true">https://dev.connect.gt/post/1018727</guid><dc:creator><![CDATA[cardy]]></dc:creator><pubDate>Tue, 09 Aug 2011 16:18:50 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Tue, 09 Aug 2011 15:21:12 GMT]]></title><description><![CDATA[<p dir="auto">Dopo aver notato che nel 100% dei plugin da me testati manca il minlength per il testo di un campo (manca anche nei form html) vi invio qui la parte di validazione (sperando sia questa quella che serve) del file mmforms.php del plugin mmforms community.<br />
In modo che inserite quel controllo per la textarea o un altro campo, vedete voi.<br />
Grazie, ciao</p>
<pre><code class="language-php">function validate($contact_form) {
        $fes = $this-&gt;form_elements($contact_form['form'], false);
        $valid = true;
        $reason = array();

        foreach ($fes as $fe) {
            $type = $fe['type'];
            $name = $fe['name'];
            $values = $fe['values'];
            
            // Before validation corrections
            if (preg_match('/^(?:text|email)
[*]?$/', $type))
                $_POST[$name] = trim(strtr($_POST[$name], "\n", " "));
            
            if (preg_match('/^(?:select|checkbox|radio)
[*]?$/', $type)) {
                if (is_array($_POST[$name])) {
                    foreach ($_POST[$name] as $key =&gt; $value) {
                        if (! in_array($value, $values)) // Not in given choices.
                            unset($_POST[$name][$key]);
                    }
                } else {
                    if (! in_array($_POST[$name], $values)) //  Not in given choices.
                        $_POST[$name] = '';
                }
            }
            
            if ('acceptance' == $type)
                $_POST[$name] = $_POST[$name] ? 1 : 0;
            
            // Required item (*)
            if (preg_match('/^(?:text|textarea|checkbox)
[*]$/', $type)) {
                if (empty($_POST[$name])) {
                    $valid = false;
                    $reason[$name] = $this-&gt;message('invalid_required');
                }
            }
            
            if ('select*' == $type) {
                if (empty($_POST[$name]) ||
                        ! is_array($_POST[$name]) &amp;&amp; '---' == $_POST[$name] ||
                        is_array($_POST[$name]) &amp;&amp; 1 == count($_POST[$name]) &amp;&amp; '---' == $_POST[$name][0]) {
                    $valid = false;
                    $reason[$name] = $this-&gt;message('invalid_required');
                }
            }

            if (preg_match('/^email
[*]?$/', $type)) {
                if ('*' == substr($type, -1) &amp;&amp; empty($_POST[$name])) {
                    $valid = false;
                    $reason[$name] = $this-&gt;message('invalid_required');
                } elseif (! empty($_POST[$name]) &amp;&amp; ! is_email($_POST[$name])) {
                    $valid = false;
                    $reason[$name] = $this-&gt;message('invalid_email');
                }
            }

            if (preg_match('/^captchar$/', $type)) {
                $captchac = '_mmf_captcha_challenge_' . $name;
                if (! $this-&gt;check_captcha($_POST[$captchac], $_POST[$name])) {
                    $valid = false;
                    $reason[$name] = $this-&gt;message('captcha_not_match');
                }
                $this-&gt;remove_captcha($_POST[$captchac]);
            }
        }
            
        return compact('valid', 'reason');
    }
</code></pre>
]]></description><link>https://dev.connect.gt/post/1018748</link><guid isPermaLink="true">https://dev.connect.gt/post/1018748</guid><dc:creator><![CDATA[marta.de.angelis]]></dc:creator><pubDate>Tue, 09 Aug 2011 15:21:12 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Mon, 08 Aug 2011 08:18:51 GMT]]></title><description><![CDATA[<p dir="auto">Se per favore date una occhiata a questo plugin:</p>
<p dir="auto"><a href="http://wordpress.org/extend/plugins/mm-forms-community/" rel="nofollow ugc">wordpress.org/extend/plugins/mm-forms-community/</a></p>
<p dir="auto">Per inserire quel controllo sulla lunghezza del testo minimo.<br />
Oltre al fatto che ve ne sarei molto grata, è sicuramente un qualcosa utile anche per altri.<br />
<img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=12b9555a9a1" 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/post/1018747</link><guid isPermaLink="true">https://dev.connect.gt/post/1018747</guid><dc:creator><![CDATA[marta.de.angelis]]></dc:creator><pubDate>Mon, 08 Aug 2011 08:18:51 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Fri, 05 Aug 2011 11:18:21 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><strong>valijolie</strong></p>
<p dir="auto">marta, altrimenti tagliamo la testa al toro: guardiamo il codice del tuo form ed aggiungiamo il controllo che ti manca <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="😉" /></p>
</blockquote>
<p dir="auto">Veramente grazie a tutti per la disponibilità e gentilezza.<br />
<img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f618.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--kissing_heart" style="height:1.4em;width:auto;vertical-align:middle" title=":*" alt="😘" /></p>
]]></description><link>https://dev.connect.gt/post/1018746</link><guid isPermaLink="true">https://dev.connect.gt/post/1018746</guid><dc:creator><![CDATA[marta.de.angelis]]></dc:creator><pubDate>Fri, 05 Aug 2011 11:18:21 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Fri, 05 Aug 2011 10:30:05 GMT]]></title><description><![CDATA[<p dir="auto">Marta, altrimenti tagliamo la testa al toro: guardiamo il codice del tuo form ed aggiungiamo il controllo che ti manca. <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="😉" /></p>
]]></description><link>https://dev.connect.gt/post/1018738</link><guid isPermaLink="true">https://dev.connect.gt/post/1018738</guid><dc:creator><![CDATA[valijolie]]></dc:creator><pubDate>Fri, 05 Aug 2011 10:30:05 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Fri, 05 Aug 2011 10:22:05 GMT]]></title><description><![CDATA[<p dir="auto">Se trovi qualcosa di fatto con Wordpress e guardi nel sorgente pagina in molti casi è possibile risalire al plugin.</p>
]]></description><link>https://dev.connect.gt/post/1018733</link><guid isPermaLink="true">https://dev.connect.gt/post/1018733</guid><dc:creator><![CDATA[katherine]]></dc:creator><pubDate>Fri, 05 Aug 2011 10:22:05 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Fri, 05 Aug 2011 07:42:51 GMT]]></title><description><![CDATA[<p dir="auto">Anche questo ultimo plugin ha solo la funzione maxlength.<br />
Trovo assurdo tutto questo.<br />
Eppure trovo milioni di form che hanno la funzionalità lunghezza minima.<br />
Provo a rintracciare uno di questi forum e vedere che software hanno usato.<br />
(Anche <a href="http://diggita.it" rel="nofollow ugc">diggita.it</a> per esempio ha questa funzione).</p>
]]></description><link>https://dev.connect.gt/post/1018745</link><guid isPermaLink="true">https://dev.connect.gt/post/1018745</guid><dc:creator><![CDATA[marta.de.angelis]]></dc:creator><pubDate>Fri, 05 Aug 2011 07:42:51 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Thu, 04 Aug 2011 21:09:27 GMT]]></title><description><![CDATA[<p dir="auto">Prova<br />
<a href="http://wordpress.org/extend/plugins/tdo-mini-forms/" rel="nofollow ugc">http://wordpress.org/extend/plugins/tdo-mini-forms/</a></p>
]]></description><link>https://dev.connect.gt/post/1018732</link><guid isPermaLink="true">https://dev.connect.gt/post/1018732</guid><dc:creator><![CDATA[katherine]]></dc:creator><pubDate>Thu, 04 Aug 2011 21:09:27 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Thu, 04 Aug 2011 20:46:17 GMT]]></title><description><![CDATA[<p dir="auto">Anche con cforms non trovo la funzione.</p>
<p dir="auto">L'ho detto cosa devo fare: un visitatore mi deve mandare i suoi dati ed una descrizione della sua attività che deve avere un minimo di lunghezza.</p>
]]></description><link>https://dev.connect.gt/post/1018744</link><guid isPermaLink="true">https://dev.connect.gt/post/1018744</guid><dc:creator><![CDATA[marta.de.angelis]]></dc:creator><pubDate>Thu, 04 Aug 2011 20:46:17 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Thu, 04 Aug 2011 20:42:29 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">a me serve per pubblicare delle informazioni</p>
</blockquote>
<p dir="auto">Forse se spieghi meglio a che ti serve possiamo aiutarti a trovare un altro tipo di plugin.</p>
<p dir="auto">Katherine</p>
]]></description><link>https://dev.connect.gt/post/1018731</link><guid isPermaLink="true">https://dev.connect.gt/post/1018731</guid><dc:creator><![CDATA[katherine]]></dc:creator><pubDate>Thu, 04 Aug 2011 20:42:29 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Thu, 04 Aug 2011 19:20:45 GMT]]></title><description><![CDATA[<p dir="auto">Ora provo con cforms, l'altro lo conosco mi sembra che non ha quella funzione. Ne ho già provati almeno 7-8.<br />
Strana questa cosa, però.</p>
<p dir="auto">Ma dato che a me serve per pubblicare delle informazioni non esiste un altro plugin che può avere questa capacità?</p>
]]></description><link>https://dev.connect.gt/post/1018743</link><guid isPermaLink="true">https://dev.connect.gt/post/1018743</guid><dc:creator><![CDATA[marta.de.angelis]]></dc:creator><pubDate>Thu, 04 Aug 2011 19:20:45 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Thu, 04 Aug 2011 18:52:31 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><strong>marta_de_angelis</strong></p>
<p dir="auto">Istallato ma non troppo l'opzione "Lunghezza minima campo di testo"<br />
Solo quella max trovo.</p>
</blockquote>
<p dir="auto">Hai ragione sorry...avevo guardato frettolosamente. Ho fatto una ricerca ma sembra che i vari plugin esistenti permettano di settare solo la lunghezza massima. Però io proverei lo stesso a installare cforms o contact form 7 che sono i più usati e completi in assoluto per creare form e vedere se hanno anche quella funzione. Ciao</p>
<p dir="auto">EDIT: Tra l'altro cforms II ha un'ottimo forum di supporto in italiano e magari trovi qualcosa<br />
<a href="http://gidibao.net/forum/forumdisplay.php?19-cformsII" rel="nofollow ugc">http://gidibao.net/forum/forumdisplay.php?19-cformsII</a></p>
]]></description><link>https://dev.connect.gt/post/1018730</link><guid isPermaLink="true">https://dev.connect.gt/post/1018730</guid><dc:creator><![CDATA[katherine]]></dc:creator><pubDate>Thu, 04 Aug 2011 18:52:31 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Thu, 04 Aug 2011 18:21:40 GMT]]></title><description><![CDATA[<p dir="auto">Si, teoricamente ho capito il concetto, ma non so applicarlo nel php.<br />
Poi, ripeto, il plugin suggerito non mi sembra avere questa funzione in default.<br />
Credo che un programmatore php ci possa impegnare due o tre minuti la massimo ad inserire al punto giusto quel controllo.<br />
Più tardi provo allora ad inserire quel codice, ma lo puoi trovare nel plugin mm forms community di cui ho dato il link.<br />
Grazie</p>
]]></description><link>https://dev.connect.gt/post/1018742</link><guid isPermaLink="true">https://dev.connect.gt/post/1018742</guid><dc:creator><![CDATA[marta.de.angelis]]></dc:creator><pubDate>Thu, 04 Aug 2011 18:21:40 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Thu, 04 Aug 2011 18:11:18 GMT]]></title><description><![CDATA[<p dir="auto">Senza vedere il codice del form non è facile darti una dritta <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
<p dir="auto">Non so se sai scrivere un po' in php, tuttavia in linea teorica dovresti fare una cosa del genere:<br />
prendere la variabile in cui c'è il tuo testo e controllare con strlen($variabile) che sia della lunghezza giusta, impostare una variabile d'errore a true se non lo è, e prima di far partire il form controllare che quella variabile sia true/false. Puoi anche lanciare un alert subito per avvisare l'utente.</p>
<p dir="auto">Ma così a parole non è facile...<br />
perché non usi <a href="http://pastebin.com" rel="nofollow ugc">pastebin.com</a> come ti suggerisce Katherine, così vediamo il codice del form? <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="😉" /></p>
]]></description><link>https://dev.connect.gt/post/1018735</link><guid isPermaLink="true">https://dev.connect.gt/post/1018735</guid><dc:creator><![CDATA[valijolie]]></dc:creator><pubDate>Thu, 04 Aug 2011 18:11:18 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Thu, 04 Aug 2011 17:15:36 GMT]]></title><description><![CDATA[<p dir="auto">Istallato ma non troppo l'opzione "Lunghezza minima campo di testo"<br />
Solo quella max trovo.<br />
<img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
]]></description><link>https://dev.connect.gt/post/1018741</link><guid isPermaLink="true">https://dev.connect.gt/post/1018741</guid><dc:creator><![CDATA[marta.de.angelis]]></dc:creator><pubDate>Thu, 04 Aug 2011 17:15:36 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Thu, 04 Aug 2011 17:08:42 GMT]]></title><description><![CDATA[<p dir="auto">Se ti serve aiuto chiedi pure. Ciao</p>
]]></description><link>https://dev.connect.gt/post/1018729</link><guid isPermaLink="true">https://dev.connect.gt/post/1018729</guid><dc:creator><![CDATA[katherine]]></dc:creator><pubDate>Thu, 04 Aug 2011 17:08:42 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Thu, 04 Aug 2011 17:02:54 GMT]]></title><description><![CDATA[<p dir="auto">Veramente? Allora lo istallo subito, grazie tante, ciao.</p>
]]></description><link>https://dev.connect.gt/post/1018740</link><guid isPermaLink="true">https://dev.connect.gt/post/1018740</guid><dc:creator><![CDATA[marta.de.angelis]]></dc:creator><pubDate>Thu, 04 Aug 2011 17:02:54 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Thu, 04 Aug 2011 17:01:35 GMT]]></title><description><![CDATA[<p dir="auto">Non conosco il plugin che hai indicato, ma quello che uso io, <a href="http://wordpress.org/extend/plugins/si-contact-form/" rel="nofollow ugc">Fast Secure Contact Form</a>, integra anche la funzione che cerchi. Magari puoi provarlo. E' aggiornato e non mi ha mai dato problemi. Ciao</p>
]]></description><link>https://dev.connect.gt/post/1018726</link><guid isPermaLink="true">https://dev.connect.gt/post/1018726</guid><dc:creator><![CDATA[katherine]]></dc:creator><pubDate>Thu, 04 Aug 2011 17:01:35 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Thu, 04 Aug 2011 16:52:21 GMT]]></title><description><![CDATA[<p dir="auto">Ecco il link da cui scaricare il plugin.</p>
<p dir="auto">-wordpress.org/extend/plugins/mm-forms-community/</p>
<p dir="auto">Fatemi sapere, per favore.<br />
Ciao</p>
]]></description><link>https://dev.connect.gt/post/1018739</link><guid isPermaLink="true">https://dev.connect.gt/post/1018739</guid><dc:creator><![CDATA[marta.de.angelis]]></dc:creator><pubDate>Thu, 04 Aug 2011 16:52:21 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Thu, 04 Aug 2011 16:37:36 GMT]]></title><description><![CDATA[<p dir="auto">Puoi postare il link, ma non in forma attiva (basta che inserisci uno spazio tra i www. così w w w.). Ti consiglio di usare Pastebin per copiare il codice.</p>
<p dir="auto">Ciao, Katherine</p>
]]></description><link>https://dev.connect.gt/post/1018725</link><guid isPermaLink="true">https://dev.connect.gt/post/1018725</guid><dc:creator><![CDATA[katherine]]></dc:creator><pubDate>Thu, 04 Aug 2011 16:37:36 GMT</pubDate></item><item><title><![CDATA[Reply to Controllo lunghezza minima form su wordpress on Thu, 04 Aug 2011 13:43:29 GMT]]></title><description><![CDATA[<p dir="auto">Finalmente una risposta. grazie<br />
Il fatto è che non so dove e come inserirla quella stringa.</p>
<p dir="auto">Qui sul forum non posso ne inserire il codice (troppo lungo) ne il link al file (non sono utente premium)</p>
<p dir="auto">Quindi rinuncio?<br />
<img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/f71a0c43-865f-4388-9868-8b387eebeeb1-mmmm.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--mmm" style="height:1.4em;width:auto;vertical-align:middle" title=":?" alt="" /></p>
]]></description><link>https://dev.connect.gt/post/1018737</link><guid isPermaLink="true">https://dev.connect.gt/post/1018737</guid><dc:creator><![CDATA[marta.de.angelis]]></dc:creator><pubDate>Thu, 04 Aug 2011 13:43:29 GMT</pubDate></item></channel></rss>