Code: Select all
<?php
header('Content-type: text/plain');
header('Content-Disposition: attachment; filename="hello.txt"');
echo "Hello\nHow are you?\nIt is nice weather" . $_POST['text'];
?>
Hello
How are you?
It is nice weather(USER INPUT)
But I am getting this:
HelloHow are you?It is nice weather(USER INPUT)
If I get rid of the
Code: Select all
header('Content-Disposition: attachment; filename="hello.txt"');Appreciate any help. Thanks.