i have a little problem, that i dont know how to solve.. i'm new with that kind of php stuff.
How can I include a file, named $user + extension .txt ($user.txt), that comes with that form:
<form action="status.php" method="post">
<input type="text" name="user" placeholder="USER" />
<input type="submit" value="submit" onclick="Submit" />
</form>
And, the results (incluiding the file) comes in the same page.
do like
if(isset($_POST['user'])) {
include($_POST['user'].".txt");
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With