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

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>Haikal Putra Gustiansyah XI RPL 1 POST</title>
  5.     <link rel="stylesheet" type="text/css" href="css/userinput.css">
  6. </head>
  7. <body>
  8.     <div class="konten">
  9.     <form id="biodata" name="biodata" method="POST" action="proses.php">
  10.         <p>Nama : <br> <input type="type" name="nama" id="nmaa" size="20"></p>
  11.         <p>Alamat : <br>
  12.             <textarea name="alamat" cols="30" rows="3" id="alamat"></textarea> </p>
  13.         <p> <input type="submit" name="button" id="button" value="kirim"> </p>
  14.     </form>
  15.     </div>
  16.    
  17.     <?php
  18.  
  19.  $nama = $_POST['nama'];
  20.  $alamat = $_POST['alamat'];
  21.  
  22.  echo $nama . '<br>';
  23.  echo $alamat . '<br>';
  24.  ?>
  25. </body>
  26. </html>
File Description
  • apa
  • PHP Code
  • 22 Oct-2019
  • 722 Bytes
You can Share it: