Menú

my first ever php code heck yea

<form method="POST"> 

          <label for="name">Name: </label> 

          <input type="text" name="name"> 

          <br/> 

          <label for="email">Email: </label>  <input type="email" name="email"> 

          <br/> 

          <br/>

          <button type="submit">SUBMIT</button></form>

 

<?php 

         if (isset($_POST['name'])){    echo "Hi " . $_POST['name'] . "! Your email is " . $_POST['email'];  }

?>

 

Thank you very much for this tutorial! I learned a bunch. I will be looking more into your other PHP classes because I like your teaching style.