we are getting .txt file but not getting proper alignment
Posted
by pmms
on Stack Overflow
See other posts from Stack Overflow
or by pmms
Published on 2010-05-19T07:02:33Z
Indexed on
2010/05/19
7:20 UTC
Read the original article
Hit count: 265
we are getting the following texfile_screenshot1.JPG when we are exporting data to .txt file
we need output which is shown in texfile_screenshot2.JPG
following is the code
$myFile = "user_password.txt";
$fh = fopen($myFile, 'a') or die("can't open file");
$newline ="\r\n";
fwrite ($fh,$newline);
$stringData1 = $_POST['uname1']." "." "." " ;
fwrite($fh, $stringData1);
$stringData1 =$_POST['password1']." "." "." ";
fwrite($fh,$stringData1);
$stringData1 = $_POST['email1']." "." "." ";
fwrite($fh, $stringData1);
fclose($fh);
© Stack Overflow or respective owner