だから私は次のページを持っていると言う。PHPはファイルを提供し、jquery経由でメッセージを送信しますか?
のindex.php
<form action="create_file.php" method="get">
<input type="number" name="num_lines">
<button type="submit">Download File</button>
<form>
create_file.php
<?php
$num_lines = $_GET['num_lines'];
//create a file with $num_lines lines
?>
どのように私のことができるようになります
1)$ num_linesラインを持つテキストファイルを作成し、それを果たしますユーザー
2.)jqueryアラートを送信して、ダウンロードが成功したことをユーザーに伝えます。理想的には、メッセージはcreate_file.phpによって作成されます。
すべてindex.phpに留まりますか?
このようなものを試すことができますp://stackoverflow.com/questions/5560373/php-create-file-for-download-without-saving-on-server – VishwaKumar