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

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.   <title>Inschrijfformulier Bit Academy</title>
  5.   <link rel="stylesheet" href="style.css">
  6.   <style>
  7.   #Dit is de fo, de fo, de Form {
  8.     font-family: 'Courier New', Courier, monospace;
  9.   }
  10. </style>
  11. </head> 
  12. <body>
  13.   <form action="http://localhost:8000/sign_up.html?naam=Lissy" method="GET">
  14.     <h1>Bit Academy Sign Up</h1>
  15.     
  16.     <div>
  17.     <label for="fname">Naam</label><br>
  18.     <input type="text" id="fname" name="fname"><br>
  19.     </div>
  20.  
  21.     <div>
  22.     <label for="email">Email</label><br>
  23.     <input type="email" id="email" name="email"><br>
  24.     </div>
  25.  
  26.     <div>
  27.     <label for="phone">Telefoonnummer</label><br>
  28.     <input type="tel" id="phone" name="phone"><br>
  29.     </div>
  30.  
  31.     <div>
  32.     <label for="pass">Secret</label><br>
  33.     <input type="password" id="pass" name="password"><br>
  34.     </div>
  35.  
  36. <p>Favoriete dagen in de week:</p>
  37.  
  38. <div>
  39.   <input type="checkbox" id="maandag" name="maandag"
  40.          checked>
  41.   <label for="maandag">Maandag</label>
  42. </div>
  43.  
  44. <div>
  45.   <input type="checkbox" id="dinsdag" name="dinsdag">
  46.   <label for="dinsdag">Dinsdag</label>
  47. </div>
  48.  
  49. <div>
  50.   <input type="checkbox" id="woensdag" name="woensdag">
  51.   <label for="woensdag">Woensdag</label>
  52. </div>
  53.  
  54. <div>
  55.   <input type="checkbox" id="donderdag" name="donderdag">
  56.   <label for="donderdag">Donderdag</label>
  57. </div>
  58.  
  59. <div>
  60.   <input type="checkbox" id="vrijdag" name="vrijdag">
  61.   <label for="vrijdag">Vrijdag</label>
  62. </div>
  63.  
  64. <div>
  65.   <input type="checkbox" id="zaterdag" name="zaterdag">
  66.   <label for="zaterdag">Zaterdag</label>
  67. </div>
  68.  
  69. <div>
  70.   <input type="checkbox" id="zondag" name="zondag">
  71.   <label for="zondag">Zondag</label>
  72. </div>
  73.  
  74. <div>
  75. <label for="opmerkingen">Opmerkingen:</label>
  76. </div>
  77.  
  78. <div>
  79. <textarea id="opmerkingen" name="opmerkingen" rows="6" cols="50">
  80. </textarea>
  81. </div>
  82.  
  83. <div>
  84.     <input type="submit" value="Submit Query"><br>
  85. </div>
  86.  
  87. </form>
  88. </body>
  89. </html>
  90.  
  91.  
File Description
  • form
  • PHP Code
  • 19 Oct-2021
  • 1.85 Kb
You can Share it: