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

  1. <!DOCTYPE html>
  2.  
  3. <html>
  4.     <head>
  5.         <meta charset="utf-8">
  6.         <title>Kasa</title>
  7.     </head>
  8.     <body>
  9.         <h1>Kasa online</h1>
  10.         
  11.         <form action="" method="get">
  12.         Imie: <input type="text" name="Imie"><br>
  13.         Nazwisko: <input type="text" name="Nazwisko"><br>
  14.         <input type="submit">
  15.         </form>
  16.     </body>
  17.     
  18. <?php
  19. $Imie = $_POST['imie'];
  20. $Nazwisko = $_POST['nazw'];
  21.  
  22. ?>
  23. </html>
File Description
  • form.php
  • PHP Code
  • 11 Oct-2021
  • 433 Bytes
You can Share it: