Page 1 of 1

PHP Form processing problem

Posted: Sat Oct 20, 2018 10:47 am
by jolijojo
During my tests I created two new pages to test validation and error windows and then erased them.
Since I activate PHP (Form processing Use PHP build processor script) the site no longer works.
http://avironmer.fr/grafitis/accueil.php

I followed the explanation video to create window control messages as explained in the video:
https://www.youtube.com/watch?v=5SfGR4eA60w

Re: PHP Form processing problem

Posted: Sat Oct 20, 2018 11:08 am
by Pablo
What is the URL of the page?
What are your exact settings?
What is the generated PHP code?
Can you please be more specific?

Re: PHP Form processing problem

Posted: Sat Oct 20, 2018 11:09 am
by jolijojo

Re: PHP Form processing problem

Posted: Sat Oct 20, 2018 12:07 pm
by Pablo
What are your exact settings?
What is the generated PHP code?
Can you please be more specific?

Re: PHP Form processing problem

Posted: Sat Oct 20, 2018 5:34 pm
by jolijojo
If i use : "Form enable Form" my site is blocked.
Unpossible to put out the adress of "Success page ad Error page"

Re: PHP Form processing problem

Posted: Sat Oct 20, 2018 5:55 pm
by Pablo
Can you please provide more details otherwise there is nothing I can do to help you.
What are your exact settings?
What is the generated PHP code (Page HTML)?

Or else:
viewtopic.php?f=10&t=82134

Re: PHP Form processing problem

Posted: Sat Oct 20, 2018 6:53 pm
by jolijojo
J'ai créé un responsive contact form in my site. Tout fonctionnait bien.
J'ai voulu apprendre à créer un contrôle de saisie par la création de fenêtres (success page et Error page) comme dans la vidéo :
https://www.youtube.com/watch?v=5SfGR4eA60w
Je ne suis pas arrivé à les faire fonctionner, j'ai donc effacé les page "Success page" et "Error page".

Depuis mon site http://avironmer.fr/grafitis/accueil.php est bloqué si je garde actif "Form processing"

Désolé je ne peux pas expliquer mieux mon problème.

I created a responsive contact form in my site. Everything worked well.
I wanted to learn how to create an input control by creating windows (success page and Error page) as in the video:
https://www.youtube.com/watch?v=5SfGR4eA60w
I did not manage to make them work, so I erased the page "Success page" and "Error page".

Since my site http://avironmer.fr/grafitis/accueil.php is blocked if I keep active "Form processing"

Sorry I can not explain my problem better.

Re: PHP Form processing problem

Posted: Sat Oct 20, 2018 8:30 pm
by Pablo
There is most likely a problem in your settings, but it is very difficult for me to tell what is wrong if I cannot see what you have done.

Re: PHP Form processing problem

Posted: Sat Oct 20, 2018 8:37 pm
by jolijojo
I will disable "Use built-in-PHP form precessor script" now perhaps you will better see.
http://avironmer.fr/grafitis/accueil.php

Code: Select all

<div id="wb_contact">
<form name="LayoutGrid1" method="post" action="" enctype="text/plain" accept-charset="UTF-8" id="contact" onsubmit="return ValidateLayoutGrid1()">
<div class="row">
<div class="col-1">
<div id="wb_Heading7" style="display:inline-block;width:100%;z-index:33;">
<h1 id="Heading7">Nous contacter</h1>
</div>
<div id="wb_LayoutGrid1">
<div id="LayoutGrid1">
<div class="row">
<div class="col-1">
<input type="text" id="Editbox4" style="display:block;width: 100%;height:55px;z-index:27;" name="Name" value="" maxlength="30" spellcheck="false" title="nom" placeholder="Nom">
<hr id="Line1" style="display:inline-block;width:440px;z-index:28;">
</div>
<div class="col-2">
</div>
</div>
</div>
</div>
<div id="wb_LayoutGrid3">
<div id="LayoutGrid3">
<div class="row">
<div class="col-1">
<input type="tel" id="Editbox6" style="display:block;width: 100%;height:54px;z-index:29;" name="phone" value="" maxlength="20" spellcheck="false" title="telephone" placeholder="T&#233;l&#233;phone">
<hr id="Line3" style="display:inline-block;width:440px;z-index:30;">
</div>
<div class="col-2">
</div>
</div>
</div>
</div>
<div id="wb_LayoutGrid4">
<div id="LayoutGrid4">
<div class="row">
<div class="col-1">
<textarea name="message" id="TextArea2" style="display:block;width: 100%;;height:124px;z-index:31;" rows="3" cols="88" maxlength="300" spellcheck="false" title="message" placeholder="Message"></textarea>
</div>
</div>
</div>
</div>
<div id="wb_LayoutGrid5">
<div id="LayoutGrid5">
<div class="row">
<div class="col-1">
<hr id="Line5" style="display:inline-block;width:440px;z-index:32;">
</div>
</div>
</div>
</div>
<div id="wb_LayoutGrid6">
<div id="LayoutGrid6">
<div class="row">
<div class="col-1">
</div>
</div>
</div>
</div>
<hr id="Line4" style="display:inline-block;width:901px;z-index:39;">
<input type="submit" id="Button2" name="" value="Envoyer" style="display:inline-block;width:84px;height:45px;z-index:40;">
</div>
</div>
</form>
</div>

Re: PHP Form processing problem

Posted: Sun Oct 21, 2018 7:13 am
by Pablo
Sorry, but I need to see the PHP code of the form.

Please enable the form processor and copy the Page HTML.

Re: PHP Form processing problem

Posted: Sun Oct 21, 2018 4:06 pm
by jolijojo
When i enable the form processor i star with a white page and no possibility for me ! How can i do ?

Re: PHP Form processing problem

Posted: Sun Oct 21, 2018 4:15 pm
by Pablo
You can view the PHP code in the application -> Page HTML.

Re: PHP Form processing problem

Posted: Sun Oct 21, 2018 4:24 pm
by jolijojo
This one ?

Code: Select all

<?php
function ValidateEmail($email)
{
   $pattern = '/^([0-9a-z]([-.\w]*[0-9a-z])*@(([0-9a-z])+([-\w]*[0-9a-z])*\.)+[a-z]{2,6})$/i';
   return preg_match($pattern, $email);
}
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['formid']) && $_POST['formid'] == 'contact')
{
   $mailto = 'jpvianes@gmail.com';
   $mailfrom = isset($_POST['email']) ? $_POST['email'] : $mailto;
   $subject = 'Vous avez recu un message d'un client';
   $message = 'Demande du client  :';
   $success_url = './produits.html';
   $error_url = './produits.html';
   $error = '';
   $eol = "\n";
   $boundary = md5(uniqid(time()));
   $header  = 'From: '.$mailfrom.$eol;
   $header .= 'Reply-To: '.$mailfrom.$eol;
   $header .= 'MIME-Version: 1.0'.$eol;
   $header .= 'Content-Type: multipart/mixed; boundary="'.$boundary.'"'.$eol;
   $header .= 'X-Mailer: PHP v'.phpversion().$eol;
   if (!ValidateEmail($mailfrom))
   {
      $error .= "The specified email address is invalid!\n<br>";
   }
   if (!empty($error))
   {
      $errorcode = file_get_contents($error_url);
      $replace = "##error##";
      $errorcode = str_replace($replace, $error, $errorcode);
      echo $errorcode;
      exit;
   }
   $internalfields = array ("submit", "reset", "send", "filesize", "formid", "captcha_code", "recaptcha_challenge_field", "recaptcha_response_field", "g-recaptcha-response");
   $message .= $eol;
   $message .= "IP Address : ";
   $message .= $_SERVER['REMOTE_ADDR'];
   $message .= $eol;
   $logdata = '';
   foreach ($_POST as $key => $value)
   {
      if (!in_array(strtolower($key), $internalfields))
      {
         if (!is_array($value))
         {
            $message .= ucwords(str_replace("_", " ", $key)) . " : " . $value . $eol;
         }
         else
         {
            $message .= ucwords(str_replace("_", " ", $key)) . " : " . implode(",", $value) . $eol;
         }
      }
   }
   $body  = 'This is a multi-part message in MIME format.'.$eol.$eol;
   $body .= '--'.$boundary.$eol;
   $body .= 'Content-Type: text/plain; charset=UTF-8'.$eol;
   $body .= 'Content-Transfer-Encoding: 8bit'.$eol;
   $body .= $eol.stripslashes($message).$eol;
   if (!empty($_FILES))
   {
       foreach ($_FILES as $key => $value)
       {
          if ($_FILES[$key]['error'] == 0)
          {
             $body .= '--'.$boundary.$eol;
             $body .= 'Content-Type: '.$_FILES[$key]['type'].'; name='.$_FILES[$key]['name'].$eol;
             $body .= 'Content-Transfer-Encoding: base64'.$eol;
             $body .= 'Content-Disposition: attachment; filename='.$_FILES[$key]['name'].$eol;
             $body .= $eol.chunk_split(base64_encode(file_get_contents($_FILES[$key]['tmp_name']))).$eol;
          }
      }
   }
   $body .= '--'.$boundary.'--'.$eol;
   if ($mailto != '')
   {
      mail($mailto, $subject, $body, $header);
   }
   header('Location: '.$success_url);
   exit;
}
?>
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>grafitis</title>
<meta name="keywords" content="grafitis, publicité, support publicitaire, maillots personnalisés">
<meta name="author" content="Grafitis">
<meta name="categories" content="publicité">
<meta name="generator" content="WYSIWYG Web Builder 14 - http://www.wysiwygwebbuilder.com">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="font-awesome.min.css" rel="stylesheet">
<link href="grafitis.css" rel="stylesheet">
<link href="accueil.css" rel="stylesheet">
<script src="jquery-1.12.4.min.js"></script>
<script src="jquery-ui.min.js"></script>
<script src="transition.min.js"></script>
<script src="collapse.min.js"></script>
<script src="dropdown.min.js"></script>
<script src="wb.parallax.min.js"></script>
<script>   
   function ValidateLayoutGrid1()
   {
      var regexp;
      var Editbox4 = document.getElementById('Editbox4');
      if (!(Editbox4.disabled || Editbox4.style.display === 'none' || Editbox4.style.visibility === 'hidden'))
      {
         if (Editbox4.value == "")
         {
            alert("Juste du texte");
            Editbox4.focus();
            return false;
         }
         if (Editbox4.value.length <  3)
         {
            alert("Juste du texte");
            Editbox4.focus();
            return false;
         }
         if (Editbox4.value.length >  30)
         {
            alert("Juste du texte");
            Editbox4.focus();
            return false;
         }
      }
      var Editbox6 = document.getElementById('Editbox6');
      if (!(Editbox6.disabled || Editbox6.style.display === 'none' || Editbox6.style.visibility === 'hidden'))
      {
         regexp = /^[-+]?\d*\.?\d*$/;
         if (!regexp.test(Editbox6.value))
         {
            alert("Please enter only digit characters in the \"phone\" field.");
            Editbox6.focus();
            return false;
         }
         if (Editbox6.value == "")
         {
            alert("Please enter a value for the \"phone\" field.");
            Editbox6.focus();
            return false;
         }
      }
      var TextArea2 = document.getElementById('TextArea2');
      if (!(TextArea2.disabled || TextArea2.style.display === 'none' || TextArea2.style.visibility === 'hidden'))
      {
         regexp = /^[A-Za-zÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ]*$/;
         if (!regexp.test(TextArea2.value))
         {
            alert("Please enter only letter characters in the \"message\" field.");
            TextArea2.focus();
            return false;
         }
         if (TextArea2.value == "")
         {
            alert("Please enter a value for the \"message\" field.");
            TextArea2.focus();
            return false;
         }
         if (TextArea2.value.length < 5)
         {
            alert("Please enter at least 5 characters in the \"message\" field.");
            TextArea2.focus();
            return false;
         }
         if (TextArea2.value.length > 255)
         {
            alert("Please enter at most 255 characters in the \"message\" field.");
            TextArea2.focus();
            return false;
         }
      }
      return true;
   }
</script>
<script src="wwb14.min.js"></script>
<script>   
   $(document).ready(function()
   {
      $('#service-text').addClass('visibility-hidden');
      $('#wb_about-text').addClass('visibility-hidden');
      $('#wb_Card4').addClass('visibility-hidden');
      $('#wb_Card5').addClass('visibility-hidden');
      $('#wb_Card6').addClass('visibility-hidden');
      $("a[href*='#header']").click(function(event)
      {
         event.preventDefault();
         $('html, body').stop().animate({ scrollTop: $('#wb_header').offset().top }, 600, 'easeOutCirc');
      });
      $(document).on('click','.ThemeableMenu1-navbar-collapse.in',function(e)
      {
         if ($(e.target).is('a') && ($(e.target).attr('class') != 'dropdown-toggle')) 
         {
            $(this).collapse('hide');
         }
      });
      $("a[href*='#home']").click(function(event)
      {
         event.preventDefault();
         $('html, body').stop().animate({ scrollTop: $('#wb_home').offset().top-88 }, 600, 'easeOutCirc');
      });
      $('#wb_home').parallax();
      $("a[href*='#features']").click(function(event)
      {
         event.preventDefault();
         $('html, body').stop().animate({ scrollTop: $('#wb_features').offset().top-88 }, 600, 'easeOutCirc');
      });
      $("a[href*='#services']").click(function(event)
      {
         event.preventDefault();
         $('html, body').stop().animate({ scrollTop: $('#wb_services').offset().top-88 }, 600, 'easeOutCirc');
      });
      function servicesScroll()
      {
         var $obj = $("#wb_services");
         if (!$obj.hasClass("in-viewport") && $obj.inViewPort(false))
         {
            $obj.addClass("in-viewport");
            AnimateCss('service-text', 'animate-fade-in-up', 0, 1000);
         }
      }
      servicesScroll();
      $(window).scroll(function(event)
      {
         servicesScroll();
      });
      $('#wb_services').parallax();
      $("a[href*='#layer_grip_liste_produits']").click(function(event)
      {
         event.preventDefault();
         $('html, body').stop().animate({ scrollTop: $('#wb_layer_grip_liste_produits').offset().top-88 }, 600, 'easeOutCirc');
      });
      $("a[href*='#services2']").click(function(event)
      {
         event.preventDefault();
         $('html, body').stop().animate({ scrollTop: $('#wb_services2').offset().top-88 }, 600, 'easeOutCirc');
      });
      $("a[href*='#societe']").click(function(event)
      {
         event.preventDefault();
         $('html, body').stop().animate({ scrollTop: $('#wb_societe').offset().top-88 }, 600, 'easeOutCirc');
      });
      function societeScroll()
      {
         var $obj = $("#wb_societe");
         if (!$obj.hasClass("in-viewport") && $obj.inViewPort(false))
         {
            $obj.addClass("in-viewport");
            AnimateCss('wb_about-text', 'animate-fade-in-up', 0, 1000);
         }
      }
      societeScroll();
      $(window).scroll(function(event)
      {
         societeScroll();
      });
      function services_bookmark2Scroll()
      {
         var $obj = $("#wb_services-bookmark2");
         if (!$obj.hasClass("in-viewport") && $obj.inViewPort(false))
         {
            $obj.addClass("in-viewport");
            AnimateCss('wb_Card4', 'animate-fade-in-up', 0, 1000);
            AnimateCss('wb_Card5', 'animate-fade-in-up', 500, 1000);
            AnimateCss('wb_Card6', 'animate-fade-in-up', 1000, 1000);
         }
      }
      services_bookmark2Scroll();
      $(window).scroll(function(event)
      {
         services_bookmark2Scroll();
      });
      $("a[href*='#contact']").click(function(event)
      {
         event.preventDefault();
         $('html, body').stop().animate({ scrollTop: $('#wb_contact').offset().top-88 }, 600, 'easeInOutCirc');
      });
      function contactScroll()
      {
         var $obj = $("#wb_contact");
         if (!$obj.hasClass("in-viewport") && $obj.inViewPort(false))
         {
            $obj.addClass("in-viewport");
            ShowObjectWithEffect('wb_about-text', 1, '', 0);
         }
      }
      contactScroll();
      $(window).scroll(function(event)
      {
         contactScroll();
      });
      var iOS = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);
      if (iOS)
      {
         $('#wb_home,#wb_services,#wb_societe').css('background-attachment', 'scroll');
      }
   });
</script>
<script src="accueil.js"></script>
<!-- Insert Google Analytics code here -->
</head>
<body>
   <div id="wb_header">
      <div id="header">
         <div class="row">
            <div class="col-1">
               <div id="wb_Image1" style="display:inline-block;width:169px;height:68px;z-index:0;">
                  <img src="images/logo-grafitis.png" id="Image1" alt="">
               </div>
            </div>
            <div class="col-2">
               <div id="wb_ThemeableMenu1" style="display:inline-block;width:100%;z-index:1001;">
                  <div id="ThemeableMenu1" class="ThemeableMenu1" style="width:100%;height:auto !important;">
                     <div class="container">
                        <div class="navbar-header">
                           <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".ThemeableMenu1-navbar-collapse">
                              <span class="icon-bar"></span>
                              <span class="icon-bar"></span>
                              <span class="icon-bar"></span>
                           </button>
                        </div>
                        <div class="ThemeableMenu1-navbar-collapse collapse">
                           <ul class="nav navbar-nav">
                              <li class="">
                                 <a href="./accueil.php#home">Accueil</a>
                              </li>
                              <li class="">
                                 <a href="./accueil.php#societe">La société</a>
                              </li>
                              <li class="">
                                 <a href="./accueil.php#layer_grip_liste_produits">Produits</a>
                              </li>
                              <li class="">
                                 <a href="javascript:popupwnd('./TARIFS 2018.pdf','no','no','no','no','no','no','','','','')" target="_self">Catalogue</a>
                              </li>
                              <li class="">
                                 <a href="#contact" target="_blank">Contact</a>
                              </li>
                              <li class="">
                                 <a href="http://grafitis.fr/" target="_blank">grafitis.fr</a>
                              </li>
                           </ul>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </div>
   <div id="wb_home">
      <div id="home-overlay"></div>
      <div id="home">
         <div class="col-1">
            <div id="wb_Text1">
               <span style="color:#FFFFFF;font-family:Verdana;font-size:43px;line-height:48px;">Boostez l'image de votre entreprise</span><span style="color:#FFFFFF;font-family:Arial;font-size:16px;line-height:21px;"><br></span><span style="color:#FFFFFF;font-family:Arial;font-size:17px;line-height:23px;"><br></span><span style="color:#FFFFFF;font-family:Arial;font-size:20px;line-height:23px;">Supports publicitaires personnalisés<br><br><br></span>
            </div>
         </div>
      </div>
   </div>
   <div id="wb_features">
      <div id="features">
         <div class="row">
            <div class="col-1">
               <div class="col-1-padding">
                  <div id="wb_FontAwesomeIcon4" style="display:inline-block;width:88px;height:73px;text-align:center;z-index:3;">
                     <div id="FontAwesomeIcon4"><i class="fa fa-paw"></i></div>
                  </div>
                  <div id="wb_Heading1" style="display:inline-block;width:100%;z-index:4;">
                     <h2 id="Heading1">Marquage</h2>
                  </div>
                  <div id="wb_Text2">
                     <span style="color:#BABABA;">Sérigraphie<br>Transfert<br>Broderie<br>Marquage à chaud</span>
                  </div>
               </div>
            </div>
            <div class="col-2">
               <div class="col-2-padding">
                  <div id="wb_FontAwesomeIcon1" style="display:inline-block;width:88px;height:73px;text-align:center;z-index:6;">
                     <div id="FontAwesomeIcon1"><i class="fa fa-eye"></i></div>
                  </div>
                  <div id="wb_Heading2" style="display:inline-block;width:100%;z-index:7;">
                     <h2 id="Heading2">Panneaux</h2>
                  </div>
                  <div id="wb_Text3">
                     <span style="color:#BABABA;">Enseignes<br>Présentations<br>Origlammes<br>Drapeaux</span>
                  </div>
               </div>
            </div>
            <div class="col-3">
               <div class="col-3-padding">
                  <div id="wb_FontAwesomeIcon2" style="display:inline-block;width:88px;height:73px;text-align:center;z-index:9;">
                     <div id="FontAwesomeIcon2"><i class="fa fa-motorcycle"></i></div>
                  </div>
                  <div id="wb_Heading3" style="display:inline-block;width:100%;z-index:10;">
                     <h2 id="Heading3">Stickers</h2>
                  </div>
                  <div id="wb_Text4">
                     <span style="color:#BABABA;">Pour vos véhicules<br>camions, voitures, motos<br>du sur mesure à votre service</span>
                  </div>
               </div>
            </div>
            <div class="col-4">
               <div class="col-4-padding">
                  <div id="wb_FontAwesomeIcon3" style="display:inline-block;width:88px;height:73px;text-align:center;z-index:12;">
                     <div id="FontAwesomeIcon3"><i class="fa fa-trophy"></i></div>
                  </div>
                  <div id="wb_Heading4" style="display:inline-block;width:100%;z-index:13;">
                     <h2 id="Heading4">Autres</h2>
                  </div>
                  <div id="wb_Text5">
                     <span style="color:#BABABA;">Praesent libero. Sed cursus ante dapibus diam. Class aptent taciti sociosqu</span>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </div>
   <div id="wb_services">
      <div id="services-overlay"></div>
      <div id="services">
         <div class="row">
            <div class="col-1">
               <div id="wb_LayoutGrid7">
                  <div id="LayoutGrid7">
                     <div class="row">
                        <div class="col-1">
                           <div id="wb_Text6">
                              <span style="color:#0000FF;font-family:Verdana;font-size:43px;line-height:49px;">Affichez vos compétences</span>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
               <div id="wb_Text7">
                  <span style="color:#4F4F4F;font-family:Arial;font-size:24px;line-height:26px;">une équipe et des outils à votre service</span>
               </div>
            </div>
         </div>
      </div>
   </div>
   <div id="wb_layer_grip_liste_produits">
      <div id="layer_grip_liste_produits">
         <div class="row">
            <div class="col-1">
               <div class="col-1-padding">
                  <div id="wb_Card1" style="display:flex;width:100%;text-align:center;z-index:18;">
                     <div id="Card1-card-body">
                        <div id="Card1-card-item0"><a href="./serigraphie.html"><i class="fa fa-server"></i></a></div>
                        <div id="Card1-card-item1">IMPRESSION</div>
                     </div>
                  </div>
               </div>
            </div>
            <div class="col-2">
               <div class="col-2-padding">
                  <div id="wb_Card2" style="display:flex;width:100%;text-align:center;z-index:19;">
                     <div id="Card2-card-body">
                        <div id="Card2-card-item0"><i class="fa fa-barcode"></i></div>
                        <div id="Card2-card-item1">BRODERIE</div>
                     </div>
                  </div>
               </div>
            </div>
            <div class="col-3">
               <div class="col-3-padding">
                  <div id="wb_Card3" style="display:flex;width:100%;text-align:center;z-index:20;">
                     <div id="Card3-card-body">
                        <div id="Card3-card-item0"><i class="fa fa-pie-chart"></i></div>
                        <div id="Card3-card-item1">TRANSFERT</div>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </div>
   <div id="wb_services2">
      <div id="services2">
         <div class="row">
            <div class="col-1">
               <div class="col-1-padding">
                  <div id="wb_Card4" style="display:flex;width:100%;text-align:center;z-index:21;">
                     <div id="Card4-card-body">
                        <div id="Card4-card-item0"><i class="fa fa-coffee"></i></div>
                        <div id="Card4-card-item1">STICKERS</div>
                     </div>
                  </div>
               </div>
            </div>
            <div class="col-2">
               <div class="col-2-padding">
                  <div id="wb_Card5" style="display:flex;width:100%;text-align:center;z-index:22;">
                     <div id="Card5-card-body">
                        <div id="Card5-card-item0"><i class="fa fa-picture-o"></i></div>
                        <div id="Card5-card-item1">PANNEAUX</div>
                     </div>
                  </div>
               </div>
            </div>
            <div class="col-3">
               <div class="col-3-padding">
                  <div id="wb_Card6" style="display:flex;width:100%;text-align:center;z-index:23;">
                     <div id="Card6-card-body">
                        <div id="Card6-card-item0"><i class="fa fa-handshake-o"></i></div>
                        <div id="Card6-card-item1">AUTRES</div>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </div>
   <div id="wb_societe">
      <div id="societe-overlay"></div>
      <div id="societe">
         <div class="row">
            <div class="col-1">
               <div id="wb_about-text">
                  <span style="color:#708090;font-family:Arial;font-size:43px;line-height:46px;"><strong>La société</strong></span><span style="color:#FFFFFF;font-family:Arial;font-size:16px;line-height:21px;"><br></span><span style="color:#FFFFFF;font-family:Arial;font-size:17px;line-height:23px;"><br></span><span style="color:#FFFFFF;font-family:Arial;font-size:20px;line-height:23px;">Sed si ille hac tam eximia fortuna propter utilitatem rei publicae frui non properat, ut omnia illa conficiat, quid ego, senator, facere debeo, quem, etiamsi ille aliud vellet, rei publicae consulere oporteret?<br><br>Haec igitur lex in amicitia sanciatur, ut neque rogemus res turpes nec faciamus rogati. Turpis enim excusatio est et minime accipienda cum in ceteris peccatis, tum si quis contra rem publicam se amici causa fecisse fateatur. Etenim eo loco, Fanni et Scaevola, locati sumus ut nos longe prospicere oporteat futuros casus rei publicae. Deflexit iam aliquantum de spatio curriculoque consuetudo maiorum.<br><br>Haec igitur lex in amicitia sanciatur, ut neque rogemus res turpes nec faciamus rogati. Turpis enim excusatio est et minime accipienda cum in ceteris peccatis, tum si quis contra rem publicam se amici causa fecisse fateatur. Etenim eo loco, Fanni et Scaevola, locati sumus ut nos longe prospicere oporteat futuros casus rei publicae. Deflexit iam aliquantum de spatio curriculoque consuetudo maiorum.<br></span>
               </div>
            </div>
         </div>
      </div>
   </div>
   <div id="wb_services-bookmark2" style="position:absolute;left:988px;top:1288px;width:36px;height:20px;z-index:56;">
      <a id="services-bookmark2" style="visibility:hidden;">&nbsp;</a>
   </div>
   <div id="wb_contact">
      <form name="LayoutGrid1" method="post" action="<?php echo basename(__FILE__); ?>" enctype="multipart/form-data" accept-charset="UTF-8" id="contact" onsubmit="return ValidateLayoutGrid1()">
         <input type="hidden" name="formid" value="contact">
         <div class="row">
            <div class="col-1">
               <div id="wb_Heading7" style="display:inline-block;width:100%;z-index:31;">
                  <h1 id="Heading7">Nous contacter</h1>
               </div>
               <div id="wb_LayoutGrid1">
                  <div id="LayoutGrid1">
                     <div class="row">
                        <div class="col-1">
                           <input type="text" id="Editbox4" style="display:block;width:100%;height:55px;z-index:25;" name="Name" value="" maxlength="30" spellcheck="false" title="nom" placeholder="Nom">
                           <hr id="Line1" style="display:inline-block;width:440px;z-index:26;">
                        </div>
                        <div class="col-2">
                        </div>
                     </div>
                  </div>
               </div>
               <div id="wb_LayoutGrid3">
                  <div id="LayoutGrid3">
                     <div class="row">
                        <div class="col-1">
                           <input type="tel" id="Editbox6" style="display:block;width:100%;height:54px;z-index:27;" name="phone" value="" maxlength="20" spellcheck="false" title="telephone" placeholder="T&#233;l&#233;phone">
                           <hr id="Line3" style="display:inline-block;width:440px;z-index:28;">
                        </div>
                        <div class="col-2">
                        </div>
                     </div>
                  </div>
               </div>
               <div id="wb_LayoutGrid4">
                  <div id="LayoutGrid4">
                     <div class="row">
                        <div class="col-1">
                           <textarea name="message" id="TextArea2" style="display:block;width:100%;;height:124px;z-index:29;" rows="3" cols="88" maxlength="300" spellcheck="false" title="message" placeholder="Message"></textarea>
                        </div>
                     </div>
                  </div>
               </div>
               <div id="wb_LayoutGrid5">
                  <div id="LayoutGrid5">
                     <div class="row">
                        <div class="col-1">
                           <hr id="Line5" style="display:inline-block;width:440px;z-index:30;">
                        </div>
                     </div>
                  </div>
               </div>
               <div id="wb_LayoutGrid6">
                  <div id="LayoutGrid6">
                     <div class="row">
                        <div class="col-1">
                        </div>
                     </div>
                  </div>
               </div>
               <hr id="Line4" style="display:inline-block;width:901px;z-index:37;">
               <input type="submit" id="Button2" name="" value="Envoyer" style="display:inline-block;width:84px;height:45px;z-index:38;">
            </div>
         </div>
      </form>
   </div>
   <div id="wb_footer">
      <div id="footer">
         <div class="row">
            <div class="col-1">
               <div id="wb_copyright">
                  <span style="color:#FFFFFF;">Copyright © 2018 grafitis.fr.&nbsp; All Rights Reserved<br></span>
               </div>
            </div>
         </div>
      </div>
   </div>
   <div id="wb_LayoutGrid8">
      <div id="LayoutGrid8">
         <div class="row">
            <div class="col-1">
            </div>
         </div>
      </div>
   </div>
</body>
</html>

Re: PHP Form processing problem

Posted: Sun Oct 21, 2018 5:24 pm
by Pablo
I think the problem is related to:
Vous avez recu un message d'un client
You will need to escape the quotes like this:
Vous avez recu un message d\'un client

Re: PHP Form processing problem

Posted: Sun Oct 21, 2018 6:40 pm
by jolijojo
Félicitations et merci
Congratulations and thank you