Salta al contenuto
  • CATEGORIES
  • La Community Connect.gt
  • Presentati alla Community
  • News Ufficiali da Connect.gt
  • Internet News
  • A Scuola Di
  • Digital Marketing
  • Intelligenza Artificiale
  • SEO & GEO
  • Web Marketing e Content
  • Google Analytics e Web Analytics
  • Google Ads & Advertising
  • YouTube
  • TikTok, Instagram e altri Social
  • Google Adsense, Affiliazioni e Guadagno
  • E-Commerce
  • Coding e Sistemistica
  • Help Center: consigli per il tuo progetto
  • Hosting e Cloud
  • Coding
  • CMS & Piattaforme Self-Hosted
  • Annunci e Collaborazioni
  • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
  • Collaborazioni WEB e Lavoro: offro e cerco
  • Impresa, Fisco e Leggi
  • Consulenza Legale e Professioni Web
  • Consulenza Fiscale, Imprese, Startup e P.Iva
  • Gli Off Topic
  • PC, Smartphone e altri Hardware
  • Tutti i Software
  • GT Fetish Cafè
  • Discussioni
  • 0 Non letti 0
  • Recenti
  • Hashtag
  • Popolare
  • Utenti
  • Privacy
  • Termini e condizioni
  • © 2026 Search On Media Group S.r.l.
Collassa
Connect.gt
Il network Search On
Connect.gt WMF AI Festival Accademia Advanced SEO Tool AgentCy Social Media Strategies Search Tech
Registrati Accedi
Connect.gt
Stream Interest Categorie Hashtag
S

stra

@stra
Non seguire Segui
Informazioni
Post
2
Discussioni
2
Condivisioni
0
Gruppi
0
Da chi è seguito
0
Chi segue
0

Post

Recenti Migliore Controverso

  • Problema form....
    S stra
    Coding

    Buongiorno ho un form che mi manda nome cognome telefono mail e messaggio a un indirizzo mail allego codice:

    <?php     $emailTo = '[email protected]';
        if($subject!=""){
        $subject =$_REQUEST['subject'];
        }else{
        $subject = 'Richiesta informazioni dal sit';
        }
        $name=$_REQUEST['name'];
        $telefono=$_REQUEST['telefono'];
        $email=$_REQUEST['email'];
        $msg=$_REQUEST['msg'];
        
        $body = "Nome: $name \n\nEmail: $email \n\nTelefono: $telefono \n\nMessaggio: $msg \n\n ";
        $headers = 'From: '.$name.' <'.$email.'>' . "\r\n" . 'Reply-To: ' . $email;
        
        mail($emailTo, $subject, $body, $headers);
    ?>
    

    e il codice in js

    jQuery(function() {  jQuery('.error').hide();
      jQuery(".button").click(function() {
    
    
        jQuery('.error').hide();
            
          var name = jQuery("input#name").val();
            if (name == "") {
          jQuery("span#name_error").show();
          jQuery("input#name").focus();
          return false;
        }
          var telefono = jQuery("input#telefono").val();
            if (telefono == "") {
          jQuery("span#telefono_error").show();
          jQuery("input#telefono").focus();
          return false;
        }    
         
        if((isNaN(telefono))) {
        jQuery("span#telefono_error2").show();
        jQuery("input#telefono").focus();
          return false;
        }
     
          var email = jQuery("input#email").val();
          if (email == "") {
          jQuery("span#email_error").show();
          jQuery("input#email").focus();
          return false;
        }
        
        var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
        if(!emailReg.test(email)) {
        jQuery("span#email_error2").show();
        jQuery("input#email").focus();
          return false;
        }
        var subject = jQuery("input#subject").val();
        
          var msg = jQuery("textarea#msg").val();
          if (msg == "") {
          jQuery("span#msg_error").show();
          jQuery("textarea#msg").focus();
          return false;
        }
            
            var dataString = 'name='+ name + '&email=' + email +  '&telefono=' + telefono + '&subject=' + subject + '&msg=' + msg;
    
    
            
          jQuery.ajax({
          type: "POST",
          url: "process.php",
          data: dataString,
          success: function() {
            jQuery('#contactform').html("<div id='message' class='ten columns'></div>");
            jQuery('#message').html("<strong>La vostra richiesta è stata inviata!</strong>")
            .append("<p>Vi ricontatteremo il prima possibile.</p>")
            .hide()
            .fadeIn(1500, function() {
              jQuery('#message');
            });
          }
         });
        return false;
        });
    });
    

    il mio problema e' che il telefono non mi compare nella mail di ritorno..... qualcuno puo' aiutarmi? sto impazendo:x
    grazie mille!


  • Buongiorno a tutti....
    S stra
    Presentati alla Community

    Save a tutti, spero di riuscire a risolvere i miei problemi con le vostre condivisioni... ^_^:D

  • Accedi

  • Non hai un account? Registrati

  • Accedi o registrati per effettuare la ricerca.
  • Primo post
    Ultimo post
Home Accedi Registrati
Menu
  • CATEGORIES
  • La Community Connect.gt
  • Presentati alla Community
  • News Ufficiali da Connect.gt
  • Internet News
  • A Scuola Di
  • Digital Marketing
  • Intelligenza Artificiale
  • SEO & GEO
  • Web Marketing e Content
  • Google Analytics e Web Analytics
  • Google Ads & Advertising
  • YouTube
  • TikTok, Instagram e altri Social
  • Google Adsense, Affiliazioni e Guadagno
  • E-Commerce
  • Coding e Sistemistica
  • Help Center: consigli per il tuo progetto
  • Hosting e Cloud
  • Coding
  • CMS & Piattaforme Self-Hosted
  • Annunci e Collaborazioni
  • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
  • Collaborazioni WEB e Lavoro: offro e cerco
  • Impresa, Fisco e Leggi
  • Consulenza Legale e Professioni Web
  • Consulenza Fiscale, Imprese, Startup e P.Iva
  • Gli Off Topic
  • PC, Smartphone e altri Hardware
  • Tutti i Software
  • GT Fetish Cafè
  • Discussioni
  • Non letti 0
  • Recenti
  • Hashtag
  • Popolare
  • Utenti
  • Privacy
  • Termini e condizioni
  • © 2026 Search On Media Group S.r.l.