Tags: form

Sort by: Date / Title /

  1. 1 year ago by aric
    html / javscript
    1. <input type="file" onchange="this.submit()" name="myfile" />
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1586"></script>
  2. 2 years ago by sx
    1. <form method="POST" action="guestbook.php">
    2.  
    3. <div style="width:0px;height:0px;overflow:hidden;display:none">
    4. URL: <input type=text name=url><br>
    5. Text: <input type=text name=text><br>
    6. Name: <input type=text name=name><br>
    7. Email: <input type=text name=email><br>
    8. </div>
    9.  
    10. Name: <input type=text name="588gfdglfd"><br>
    11. Email: <input type=text name="488ffsjl"><br>
    12. URL: <input type=text name="ldsdsi48sdfl" value="http://"><br>
    13. Text: <textarea name="x384Xfdffrfl"></textarea><br>
    14. <input type="submit" value="Eintragen" name="submit">
    15. </form>
    16.  
    17. <?
    18. $name = $_POST['588gfdglfd'];
    19. $email = $_POST['488ffsjl'];
    20. $url = $_POST['ldsdsi48sdfl'];
    21. $text = $_POST['x384Xfdffrfl'];
    22. if(isset($_POST['url']) OR isset($_POST['text']) OR isset($_POST['name']) OR isset($_POST['email'])) 
    23.  
    24. {
    25.     sleep(50);
    26.     DIE("no access");
    27. }
    28. else {
    29.     // save in database
    30. }
    31. ?>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1058"></script>
  3. 2 years ago by angoru
    1. function sms_form_alter($form_id, &$form) {
    2.     if ($form_id == 'ID_DEL_FORMULARIO') {
    3.           //aqui se pueden crear y modificar campos como si estuvieras en el formulario original
    4.           //ej:
    5.          $form['telefono'] = array(
    6.               '#type' => 'textfield',
    7.               '#title' => t('telefono'),
    8.               '#default_value' => '',
    9.               '#size' => 50,
    10.               '#maxlength' => 64,
    11.               '#required' => FALSE
    12.           );
    13.  
    14.        //importante: si quieres añadir funcionalidades que se ejecuten despues de la comprobacion del form, se añaden las funcuines de esta forma.
    15.  
    16.        $form['#submit']['nombre_de_la_funcion_nueva'] = current($form['#submit']);
    17.     }
    18. }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/629"></script>
  4. sponsorised links

First / Previous / Next / Last / Page 1 of 1 (3 posteets)