Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<!DOCTYPE html> <html> <head> <title>User Input Form</title> </head> <body> ..

Decoded Output download

<!DOCTYPE html> 
<html> 
<head> 
    <title>User Input Form</title> 
</head> 
<body> 
    <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"> 
        Enter your input: <input type="text" name="user_input"> 
        <input type="submit"> 
    </form> 
 
    <?php 
    // Check if the form is submitted 
    if ($_SERVER["REQUEST_METHOD"] == "POST") { 
        // Retrieve the user input 
        $input = $_POST['user_input']; 
         
        // Display the user input 
        echo "You entered: " . $input; 
    } 
    ?> 
</body> 
</html> 

Did this file decode correctly?

Original Code

<!DOCTYPE html>
<html>
<head>
    <title>User Input Form</title>
</head>
<body>
    <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
        Enter your input: <input type="text" name="user_input">
        <input type="submit">
    </form>

    <?php
    // Check if the form is submitted
    if ($_SERVER["REQUEST_METHOD"] == "POST") {
        // Retrieve the user input
        $input = $_POST['user_input'];
        
        // Display the user input
        echo "You entered: " . $input;
    }
    ?>
</body>
</html>

Function Calls

htmlspecialchars 1

Variables

None

Stats

MD5 71fc79741610fb61c5d20753aa0d67fe
Eval Count 0
Decode Time 51 ms