<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Posteet: form</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <item>
        <title>[HTML/Javascript] upload a file / submit a form when a file is selected</title>
        <link>http://www.posteet.com/view/1586</link>
        <description>
        <![CDATA[<pre>&lt;input type=&quot;file&quot; onchange=&quot;this.submit()&quot; name=&quot;myfile&quot; /&gt;</pre> <a href="http://www.posteet.com/tags/file">[file]</a>  <a href="http://www.posteet.com/tags/form">[form]</a>  <a href="http://www.posteet.com/tags/html">[html]</a>  <a href="http://www.posteet.com/tags/javascript">[javascript]</a>  <a href="http://www.posteet.com/tags/select">[select]</a>  <a href="http://www.posteet.com/tags/selected">[selected]</a>  <a href="http://www.posteet.com/tags/submit">[submit]</a>  <a href="http://www.posteet.com/tags/upload">[upload]</a> ]]>        </description>
        <dc:creator>aric</dc:creator>
        <pubDate>Fri, 27 Feb 2009 18:05:28 +0100</pubDate>

            <category>file</category>
            <category>form</category>
            <category>html</category>
            <category>javascript</category>
            <category>select</category>
            <category>selected</category>
            <category>submit</category>
            <category>upload</category>
    
    </item>

  
    <item>
        <title>captcha code</title>
        <link>http://www.posteet.com/view/1058</link>
        <description>
        <![CDATA[<pre>&lt;form method=&quot;POST&quot; action=&quot;guestbook.php&quot;&gt;

&lt;div style=&quot;width:0px;height:0px;overflow:hidden;display:none&quot;&gt;
URL: &lt;input type=text name=url&gt;&lt;br&gt;
Text: &lt;input type=text name=text&gt;&lt;br&gt;
Name: &lt;input type=text name=name&gt;&lt;br&gt;
Email: &lt;input type=text name=email&gt;&lt;br&gt;
&lt;/div&gt;

Name: &lt;input type=text name=&quot;588gfdglfd&quot;&gt;&lt;br&gt;
Email: &lt;input type=text name=&quot;488ffsjl&quot;&gt;&lt;br&gt;
URL: &lt;input type=text name=&quot;ldsdsi48sdfl&quot; value=&quot;http://&quot;&gt;&lt;br&gt;
Text: &lt;textarea name=&quot;x384Xfdffrfl&quot;&gt;&lt;/textarea&gt;&lt;br&gt;
&lt;input type=&quot;submit&quot; value=&quot;Eintragen&quot; name=&quot;submit&quot;&gt;
&lt;/form&gt;

&lt;?
$name = $_POST['588gfdglfd'];
$email = $_POST['488ffsjl'];
$url = $_POST['ldsdsi48sdfl'];
$text = $_POST['x384Xfdffrfl'];
if(isset($_POST['url']) OR isset($_POST['text']) OR isset($_POST['name']) OR isset($_POST['email'])) 

{
    sleep(50);
    DIE(&quot;no access&quot;);
}
else {
    // save in database
}
?&gt;</pre> <a href="http://www.posteet.com/tags/captcha">[captcha]</a>  <a href="http://www.posteet.com/tags/form">[form]</a>  <a href="http://www.posteet.com/tags/php">[php]</a> ]]>        </description>
        <dc:creator>sx</dc:creator>
        <pubDate>Tue, 08 Jul 2008 21:36:35 +0200</pubDate>

            <category>captcha</category>
            <category>form</category>
            <category>php</category>
    
    </item>

  
    <item>
        <title>Como modificar un formulario desde otro módulo</title>
        <link>http://www.posteet.com/view/629</link>
        <description>
        <![CDATA[<pre>function sms_form_alter($form_id, &amp;$form) {
    if ($form_id == 'ID_DEL_FORMULARIO') {
          //aqui se pueden crear y modificar campos como si estuvieras en el formulario original
          //ej:
         $form['telefono'] = array(
              '#type' =&gt; 'textfield',
              '#title' =&gt; t('telefono'),
              '#default_value' =&gt; '',
              '#size' =&gt; 50,
              '#maxlength' =&gt; 64,
              '#required' =&gt; FALSE
          );

       //importante: si quieres añadir funcionalidades que se ejecuten despues de la comprobacion del form, se añaden las funcuines de esta forma.

       $form['#submit']['nombre_de_la_funcion_nueva'] = current($form['#submit']);
    }
}</pre> <a href="http://www.posteet.com/tags/drupal">[drupal]</a>  <a href="http://www.posteet.com/tags/form">[form]</a> ]]>        </description>
        <dc:creator>angoru</dc:creator>
        <pubDate>Thu, 27 Dec 2007 10:40:55 +0100</pubDate>

            <category>drupal</category>
            <category>form</category>
    
    </item>


</channel>
</rss>
