Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    convalida form sia imput che select

    Ciao mi servirebbe uno script per la convalida di un form che contiene sia per imput che select...non sono ancora molto pratico con gli script quindi mi dovreste dire dove lo devo personalizzare e dove inserirlo all'interno della pagina html .......... grazie in anticipo!

  2. #2
    vi posto il form:
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    <FORM METHOD=POST ACTION="/cgi-bin/FormMail.pl">
    <table width="75%" border="0" height="77" cellspacing="0" CELLPADDING="0">
    <tr>
    <td width="33%">Nome</td>
    <td width="67%">
    <input type="text" name="nome" maxlength="100" >
    </td>
    </tr>
    <tr>
    <td width="33%">Cognome</td>
    <td width="67%">
    <input type="text" name="cognome" maxlength="100" >
    </td>
    </tr>
    <tr>
    <td width="33%">Telefono</td>
    <td width="67%">
    <input type="text" name="telefono" maxlength="100" >
    </td>
    </tr>
    <tr>

    <td width="33%" height="2">Paese</td>

    <td width="67%" height="2">
    <input type="text" name="paese" maxlength="100" >
    </td>
    </tr>
    <tr>
    <td width="33%">E-Mail</td>
    <td width="67%">
    <input type="text" name="emailcliente" maxlength="1000" >
    </td>
    </tr>
    <tr>
    <td width="33%">Numero Adulti</td>
    <td width="67%">
    <select name="adulti" class="campiform2">
    <option selected>--</option>
    <option>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    <option>5</option>
    </select>
    </td>
    </tr>
    <tr>
    <td width="33%">Numero Bambini</td>
    <td width="67%">
    <select name="bambini">
    <option selected>--</option>
    <option>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    </select>
    </td>
    </tr>
    <tr>

    <td width="33%"></td>
    <td width="67%"> </td>
    </tr>
    <tr>

    <td width="33%"></td>
    <td width="67%"> </td>
    </tr>
    </table>
    <table width="75%" border="0" cellspacing="0">
    <tr>
    <td width="33%" height="73">Richiesta info</td>
    <td width="67%" height="73">
    <textarea name="richiesta info" rows="4"></textarea>
    </td>
    </tr>
    </table>
    <input name="submit" type=submit value=invia>
    </form>

    </body>
    </html>

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.