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

Signing you up...

Thank you for signing up!

PHP Decode

<?php if(!isset($_POST['fname'])) { $msg = ""; } else { $name = $POST['fname']; $m..

Decoded Output download

<?php 
if(!isset($_POST['fname'])) 
{ 
$msg = ""; 
} 
else 
{ 
$name = $POST['fname']; 
$msg= "Welcome: ".$name; 
} 
?> 
 
 
<html> 
<head> 
<title>Form</title> 
</head> 
<body> 
<form method = "POST" action="<?php echo $_SERVER["PHP_SELF"]; 
Enter Your Full Name: <INPUT TYPE="TEXT" NAME="fname"> 
<br/> 
<input type ="submit" name="submit" value="submit"> 
</form> 
<?php echo $msg;?> 
</body> 
</html>

Did this file decode correctly?

Original Code

<?php
if(!isset($_POST['fname']))
{
$msg = "";
}
else
{
$name = $POST['fname'];
$msg= "Welcome: ".$name;
}
?>


<html>
<head>
<title>Form</title>
</head>
<body>
<form method = "POST" action="<?php echo $_SERVER["PHP_SELF"];
Enter Your Full Name: <INPUT TYPE="TEXT" NAME="fname">
<br/>
<input type ="submit" name="submit" value="submit">
</form>
<?php echo $msg;?>
</body>
</html>

Function Calls

None

Variables

None

Stats

MD5 aaab3efd2480b2a628326984523789b3
Eval Count 0
Decode Time 148 ms