Thursday, April 1, 2021

How to use Error_Reporting in PHP

 In this tutorial I will teach you how to use error_reporting in PHP programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com




Program Listing

index.php

<?php
  error_reporting(0);
   if( $_GET["name"] || $_GET["age"] || $_GET["email"] ) {
      echo "Welcome ". $_GET['name']. "<br />";
      echo "You are ". $_GET['age']. " years old."."<br />";;
      echo "Your email is ". $_GET['email'];
      exit();
   }
?>
<html>
   <body>

      <form action = "" method = "GET">
         Name: <input type = "text" name = "name" />
         Age: <input type = "text" name = "age" />
         Email: <input type = "text" name = "email" />
         <input type = "submit" />
      </form>

   </body>
</html>




No comments:

Post a Comment