test_form - 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_form.php

  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4.  
  5. <h1 class="settitle" align="center">php test</h1>
  6.  
  7. <form action="welcome.php" method="post">
  8. Name: <input type="text" name="name"><br>
  9. E-mail: <input type="text" name="email"><br>
  10. <input type="submit">
  11. </form>
  12.  
  13. <!--
  14. <?php
  15. $txt = "PHP";
  16. echo "I love $txt!<br>";
  17. ?>
  18. -->
  19.   
  20. </body>
  21. </html>
  22.  
  23.  
File Description
  • test_form
  • PHP Code
  • 16 Jan-2023
  • 319 Bytes
You can Share it: