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

  1. <?php
  2.  $code = "123456";
  3.  
  4. $htmlContent = 
  5.     <html> 
  6.     <head> 
  7.         <title>Welcome to CodexWorld</title> 
  8.     </head> 
  9.     <body> 
  10.  
  11.     <script>
  12.    </script>
  13.     
  14.  
  15.  
  16.  
  17. <form method='post' action='http://hamkar.tssino.ir/change_pasword.php'>
  18.  
  19. <label for='newPassword'>New Password:</label>
  20. <input type='password' id='newPassword' name='newPassword' title='New password' />
  21.  
  22. <label for='confirmPassword'>Confirm Password:</label>
  23. <input type='password' id='confirmPassword' name='confirmPassword' title='Confirm new password' />
  24.  
  25. <label for='confirmPassword'>Code: $code</label>
  26. <input type='hidden' id='code_user' name='name_code_user'  value=$code  />
  27.  
  28.  
  29. <p class='form-actions'>
  30. <input type='submit' value='Change Password' title='Change password' />
  31. </p>
  32.  
  33. </form>
  34.     </body> 
  35.     </html>"; 
  36.  
  37.  echo $htmlContent;
  38.  
  39. ?>
File Description
  • test2
  • PHP Code
  • 18 Feb-2020
  • 828 Bytes
You can Share it: