<?php $fh = fopen($_SESSION['kiol.txt'], 'a'); $stringData=$_GET['timeperiod']; fwrite($fh,$stringData); echo"procesing"; fclose($fh); ?> will this code help to store a data which is given by user in a form in a wordpad
I'd do something like, <?php $content = $_POST['userInput']; $fh1 = fopen("kiol.txt", 'w') or die("Error, can't open file"); fwrite($fh1, $content); fclose($fh1); echo "<html><head></head><body><center><div align=\"center\">Processing</div></center></body></html>"; ?>