4e - 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 4e.php

  1. <?php
  2. $aux=1;
  3. For($i=$_POST['N'];$i>1;$i--)
  4. {
  5. $aux = $aux*$i;
  6. }
  7. echo $_POST['N'].'!='!$aux;
  8. ?>
  9.  
  10. <form method="post" action="">
  11. N:<input type="text" name="N"><br>
  12. <input type="submit" name="submit" name="submit"><br>
  13. </form>
  14.  
File Description
  • 4e
  • PHP Code
  • 29 Sep-2022
  • 237 Bytes
You can Share it: