Hi,
I am very new to php...after having read all of the manual I thought of learning y wiriting a simple guestbook ...
so I got the form..I got the php file which takes the entries and wrties to a single flat file....BUT this is where I have a problem..when I do the following:
fputs($out,"---\n"); //[]
fputs($out,"$name\t"); //[0]
fputs($out,"$email\t"); //[1]
fputs($out,"$homepage\t"); //[2]
fputs($out,"$radio out of 5\t"); //[3]
fputs($out,"$REMOTE_ADDR\t"); //[4]
fputs($out,"$comments\n"); //[5]
fputs($out,"\n");
fclose($out);
The \n does not seem to work at all...but the \t works fine....
the file i write to looks like:
---hello what a 3 out of 5 207.121.103.5 nice
day---hello what a 3 out of 5 207.121.103.5 nice
day---my name my email my homepage 2 out of 5 207.121.103.5 my comments
Any idea on what I am doing wrong.
Thanks
Wilfred