I created a php and html code like this but i want when i write into txt file
first data come here
second data come here
but its becoming like this
first data second data
how can i do this here is my php and html code
I tried <br> but when i do this it writes <br> into txt file and becoming like this
first data<br>second data
HTML
<html>
<body bgcolor="#FFFFFF" text="#000000">
<form action="kayit.php" method="get">
<b>Kullanici Adiniz:</b><input type="text" name="u_name" size="20"><br>
<b>Sifreniz:</b><input type="password" name="pass" size="20"><br>
<b>Email Adresiniz:</b><input type="text" name="mail" size="20"><br>
<input type="submit" value=" Kayit ">
</form>
</body>
</html>
PHP
<?
@mysql_connect("localhost", "dakkar", "1234567")
or die("Could not connect to database!");
@mysql_select_db("test")
or die("Couldnt connect to database!");
$sql = "SELECT count(*) FROM kayit WHERE username = '".$_GET['u_name']."'";
$res = mysql_query($sql) OR die(mysql_error());
$row = mysql_fetch_row($res);
if($row[0] == 0) {
if (($u_name !== "") && ($pass !== "") && ($mail !== "")) {
if (ereg("@",$mail) && ereg(".",$mail)) {
if (eregi("remote",$u_name) || eregi("admin",$u_name) || eregi("dak",$u_name)) {
echo "<center><b>This is a forbidden username.</b></center>";
} else {
@("insert into kayit values('$u_name','$pass','$mail')");
echo "<center><b>Your data has inserted into database.</b></center>";
$acc_giris = (fopen("./sphereacct.scp","a"));
$yeni_metin = "[$u_name]\n PASSWORD=$pass\n PLEVEL=1\n PRIV=00000\n ";
fwrite($acc_giris, $yeni_metin);
fclose($acc_giris);
}
} else {
echo "<center><b>Please enter a valid email adres</b></center>.";
}
} else {
echo "<center><b>Fill all the blanks</b>.";
}
} else {
echo "<center><b>The username you wanted is already a registered username</b></center>";
}
?>