Where do I see the data of the contact forms that they complete on my page?

0

I had a contact form that came to my mail when people completed it. Now I do not have it and, instead, I have a form whose action is:

      <?php
$nameErr = $emailErr = "";
$name = $email ="";

if ($_SERVER["REQUEST_METHOD"] == "POST") {
  if (empty($_POST["name"])) {
    $nameErr = "Name is required";
  } else {
    $name = test_input($_POST["name"]);
    }


  if (empty($_POST["email"])) {
$emailErr = "Email is required";
  } else {
    $email = test_input($_POST["email"]);       
  }
}

? >

<h2>Contacto</h2>
<p><span class="error">* required field.</span></p>
<form method="post" action="<?php echo 
htmlspecialchars($_SERVER["PHP_SELF"]);?>">  
  Name: <input type="text" name="name" value="<?php echo $name;?>">
  <span class="error">* <?php echo $nameErr;?></span>
  <br><br>
  E-mail: <input type="text" name="email" value="<?php echo $email;?>">
  <span class="error">* <?php echo $emailErr;?></span>
  <br><br>
  <input type="submit" name="submit" value="Submit">  
  </form>
 </body>
</html>

From what I understand, this sends the data to the same page from where they come from. My question is, if many people fill out that contact form on my page, where is the data stored? Where do I see them?

    
asked by Maria Emilia 20.03.2018 в 17:44
source

0 answers