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

    Form in javascript non invia email

    Ciao a tutti gli amici di html.it,premetto che non conosco javascript, ho realizzato un form in javascript tramite jotform, il problema è che premendo "Invia" il form con i relativi dati non viene inviato all'indirizzo curriculum@salernosystem.it...

    potreste dare un'occhiata al codice ?

    codice:
    <script src="http://www.jotform.com/js/form.js?v2.0.858" type="text/javascript"></script><style type="text/css">html,body{height:100%; margin:0;}
    .tbmain{ 
     /* Changes on the form */
     background: white !important; 
    }
    .left{
      /* Changes on the form */
      color: black !important; 
      font-family: Verdana !important;
      font-size: 12px !important;
    }
    .head{
      color:#333333;
      font-size:20px;;
      text-decoration:underline;
      font-family:"Verdana";
    }
    td.left {
      font-family:"Verdana";
      font-size:12px;
      color:black;
    }
    .pagebreak{
      font-family:"Verdana";
      font-size:12px;
      color:black;
    }
    .tbmain{
      height:100%;
      background:white;
    }
    span.required{
      font-size: 13px !important;
      color: red !important;
    }
    
    div.backButton{
    	background: transparent url("http://www.jotform.com//images/btn_back.gif") no-repeat scroll 0 0;
    	height:16px;
    	width:53px;
    	float:left;
    	margin-bottom:15px;
    	padding-right:5px;
    }
    div.backButton:hover{
    	background: transparent url("http://www.jotform.com//images/btn_back_over.gif") no-repeat scroll 0 0;
    }
    div.backButton:active{
    	background: transparent url("http://www.jotform.com//images/btn_back_down.gif") no-repeat scroll 0 0;
    }
    div.nextButton{
    	background: transparent url("http://www.jotform.com//images/btn_next.gif") no-repeat scroll 0 0;
    	height:16px;
    	width:53px;
    	float: left;
    	margin-bottom:15px;
    	padding-right:5px;
    }
    div.nextButton:hover{
    	background: transparent url("http://www.jotform.com//images/btn_next_over.gif") no-repeat scroll 0 0;
    }
    div.nextButton:active{
    	background: transparent url("http://www.jotform.com//images/btn_next_down.gif") no-repeat scroll 0 0;
    }
    .pageinfo{
    	padding-right:5px;
    	margin-bottom:15px;
    	float:left;
    }</style>
    <table class="tbmain" cellspacing="0" cellpadding="2" width="100%">
        <tbody>
            <tr>
                <td class="topleft" width="10" height="10"></td>
                <td class="topmid"></td>
                <td class="topright" width="10" height="10"></td>
            </tr>
            <tr>
                <td class="midleft" width="10"></td>
                <td class="midmid" valign="top">
                <form action="mailto:curriculum@salernosystem.it" method="post" enctype="text/plain" name="q_form_90675418828">
                    
                    <div id="main">
                    <div class="pagebreak"><script type="text/javascript">
       document.getElementById('spc').value = '27b0ac476bd4de78b882f4cc17e1e17a';
    </script>
                    <table cellspacing="0" cellpadding="5" width="520">
                        <tbody>
                            <tr>
                                <td class="left" colspan="2">Compila le form in tutte le sue parti e clicca su invia.</td>
                            </tr>
                            <tr>
                                <td class="left" colspan="2">Inserisci i tuoi dati</td>
                            </tr>
                            <tr>
                                <td class="left" width="150"><label>Cognome <span class="required">*</span></label></td>
                                <td class="right"><input class="text" id="q0" maxlength="100" maxsize="100" onblur="validate(this,'Required')" name="q0_Cognome" type="text" /></td>
                            </tr>
                            <tr>
                                <td class="left" width="150"><label>Nome <span class="required">*</span></label></td>
                                <td class="right"><input class="text" id="q1" maxlength="100" maxsize="100" onblur="validate(this,'Required')" name="q1_Nome" type="text" /></td>
                            </tr>
                            <tr>
                                <td class="left" width="150"><label>Indirizzo <span class="required">*</span></label></td>
                                <td class="right"><input class="text" id="q3" maxlength="100" maxsize="100" onblur="validate(this,'Required')" name="q3_Indirizzo" type="text" /></td>
                            </tr>
                            <tr>
                                <td class="left" width="150"><label>Cap</label></td>
                                <td class="right"><input class="text" id="q11" maxlength="100" maxsize="100" name="q11_Cap" type="text" /></td>
                            </tr>
                            <tr>
                                <td class="left" width="150"><label>Citta <span class="required">*</span></label></td>
                                <td class="right"><input class="text" id="q4" maxlength="100" maxsize="100" onblur="validate(this,'Required')" name="q4_Citta" type="text" /></td>
                            </tr>
                            <tr>
                                <td class="left" width="150"><label>Telefono <span class="required">*</span></label></td>
                                <td class="right"><input class="text" id="q13" maxlength="20" maxsize="20" onblur="validate(this,'Required')" name="q13_Telefono" type="text" /></td>
                            </tr>
                            <tr>
                                <td class="left" width="150"><label>E-mail</label></td>
                                <td class="right"><input class="text" id="q2" maxlength="100" maxsize="100" name="q2_Email" type="text" /></td>
                            </tr>
                            <tr>
                                <td class="left" colspan="2">Inserisci i dati della tua amica</td>
                            </tr>
                            <tr>
                                <td class="left" width="150"><label>Cognome</label></td>
                                <td class="right"><input class="text" id="q16" maxlength="100" maxsize="100" name="q16_Cognome" type="text" /></td>
                            </tr>
                            <tr>
                                <td class="left" width="150"><label>Nome</label></td>
                                <td class="right"><input class="text" id="q17" maxlength="100" maxsize="100" name="q17_Nome" type="text" /></td>
                            </tr>
                            <tr>
                                <td class="left" width="150"><label>Indirizzo <span class="required">*</span></label></td>
                                <td class="right"><input class="text" id="q18" maxlength="100" maxsize="100" onblur="validate(this,'Required')" name="q18_Indirizzo" type="text" /></td>
                            </tr>
                            <tr>
                                <td class="left" width="150"><label>Cap</label></td>
                                <td class="right"><input class="text" id="q19" maxlength="100" maxsize="100" name="q19_Cap" type="text" /></td>
                            </tr>
                            <tr>
                                <td class="left" width="150"><label>Citta <span class="required">*</span></label></td>
                                <td class="right"><input class="text" id="q20" maxlength="100" maxsize="100" onblur="validate(this,'Required')" name="q20_Citta" type="text" /></td>
                            </tr>
                            <tr>
                                <td class="left" width="150"><label>Telefono <span class="required">*</span></label></td>
                                <td class="right"><input class="text" id="q21" maxlength="100" maxsize="100" onblur="validate(this,'Required')" name="q21_Telefono" type="text" /></td>
                            </tr>
                            <tr>
                                <td class="left" width="150"><label>E-mail</label></td>
                                <td class="right"><input class="text" id="q22" maxlength="100" maxsize="100" name="q22_Email" type="text" /></td>
                            </tr>
                            <tr>
                                <td class="left" width="150"></td>
                                <td class="right"><input class="btn" type="submit" value="Invia" /> <input class="btn" type="reset" value="Cancella" /></td>
                            </tr>
                        </tbody>
                    </table>
                    </div>
                    </div>
                </form>
                </td>
                <td class="midright" width="10"></td>
            </tr>
            <tr>
                <td class="bottomleft" width="10" height="10"></td>
                <td class="bottommid"></td>
                <td class="bottomright" width="10" height="10"></td>
            </tr>
        </tbody>
    </table>
    <script type="text/javascript">
    validate("q_form_90675418828");
    </script>
    Grazie a tutti.

  2. #2
    prova a metterla in GET la form.
    I DON'T Double Click!

  3. #3
    ciao e grazie per la risposta, ho provato a mettere la form in get ma non funziona...

    codice:
    <form action="mailto:curriculum@salernosystem.it" method="get" enctype="text/plain" name="q_form_90675418828">
    dove sbaglio?

  4. #4
    Utente di HTML.it L'avatar di Virus_101
    Registrato dal
    Sep 2008
    Messaggi
    2,497
    Non so se passare a get possa risolvere.

    Prova a togliere l'enc-type dalla form.

    inoltre
    <script src="http://www.jotform.com/js/form.js?v2.0.858" type="text/javascript"></script>
    non capisco perche' passi ?v2....
    prova a linkare cosi'
    <script src="http://www.jotform.com/js/form.js" type="text/javascript"></script>



    I prob possono essere everywhere!!!



    OT:
    Artorius ti ho mandato un pm.

  5. #5
    Mi sa di più una questione di capire che roba fa quella funzione validate().

    ah, mettere un "?quello-che-vuoi" dopo l'src di un file JS non cambia nulla, ma in fase di onload puoi controllare i tag script e cercare quello con src uguale al tuo ed usare il dopo ? per passare delle variabili (tipo come fa scriptaculous).


    P.S. @Virus_101 ti ho risposto
    I DON'T Double Click!

  6. #6

    Re: Form in javascript non invia email

    Originariamente inviato da cuomocrescenzo
    Ciao a tutti gli amici di html.it,premetto che non conosco javascript, ho realizzato un form in javascript tramite jotform, il problema è che premendo "Invia" il form con i relativi dati non viene inviato all'indirizzo curriculum@salernosystem.it...

    potreste dare un'occhiata al codice ?

    Grazie a tutti.
    Ho controllato il sito jotform, dal quale si evince che tu stai utilizzando un servizio di jotform, tramite il quale fai passare sui loro server tutti i dati che gli utenti scrivono nelle tue form
    Ovviamente se le form non sono esattamente quelle generate dal 'generatore di form', mi si passi la frase, non funzionano!

    &Egrave; proprio quello che vuoi?

    Un consiglio?
    Dai un'occhiata qua, sul sito HTML.it, che di forms belline se ne trovano!

    HTH
    Zappa
    [PC:Presario 2515EU][Cpu:P4@2.3GHz][Ram: 512M][HDU:80G@5400 RPM]
    [Wireless:LinkSys][OS: Ubuntu 9.04 - Jaunty Jackalope]

  7. #7
    Grazie per la risposta,
    io in effetti devo creare una form strutturata su due colonne in html, ma non conoscendo il linguaggio mi viene molto difficile, potreste postarmi qualche link?

    Grazie.

  8. #8
    Questo non &egrave; male.
    Ti conviene anche studiare le guide che trovi nella Home di HTML.it:
    Guida HTML e Guida CSS di base

    HTH
    Zappa
    [PC:Presario 2515EU][Cpu:P4@2.3GHz][Ram: 512M][HDU:80G@5400 RPM]
    [Wireless:LinkSys][OS: Ubuntu 9.04 - Jaunty Jackalope]

  9. #9
    Ok lo provo e vi faccio sapere.

    Thanks!

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.