DDD - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of DDD.php

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.    <title></title>
  5.    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6.    </head>
  7.    <body>
  8.    <form method='POST'>
  9.    <h2>Please input your name:</h2>
  10.  <input type="text" name="name">
  11.  <input type="submit" value="Submit Name">
  12.  </form>
  13. <?php
  14. //Retrieve name from query string and store to a local variable
  15. $name = $_POST['name'];
  16. echo "<h3> Hello $name </h3>";
  17. ?>
  18. </body>
  19. </html>
File Description
  • DDD
  • PHP Code
  • 19 Mar-2021
  • 429 Bytes
You can Share it: