- Joined
- Jan 14, 2005
- Messages
- 395
- Reaction score
- 2
Fixed
source :
index.html
index.php
thank you for time watching at it :flag_schw
source :
index.html
Code:
<form method="post" action="index.php">
<p>
<input type="text" name="werkt" value="msn" />
<input type="submit" value="Submit" />
</p>
</form>
index.php
PHP:
<?php
if (empty($_REQUEST["werkt"]))
{
print("You did left the field empty go back");
exit();
}
elseif ($_REQUEST["werkt"] == 'msn')
{
readfile("data1.txt");
}
if ($_REQUEST["werkt"] == 'google')
{
readfile("data2.txt");
}
else
{
print("That is not supported");
exit();
}
?>

