test - 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 test.php

  1.  
  2.  
  3.  <html>
  4. <body>
  5.  
  6. <form action="welcome.php" method="post">
  7. Name: <input type="text" name="name"><br>
  8. E-mail: <input type="text" name="email"><br>
  9. <input type="submit">
  10. </form>
  11.  
  12. </body>
  13. <form name="welcome">
  14.  
  15. Welcome <?php echo $_POST["name"]; ?><br>
  16. Your email address is: <?php echo $_POST["email"]; ?>
  17.  
  18. </form>
  19. </html> 
File Description
  • test
  • PHP Code
  • 26 Dec-2022
  • 322 Bytes
You can Share it: