syntax question

Contributor
21Feb2010,09:01   #1
Toddie's Avatar
fwrite($handle,$_POST["usersname"]);

I want to add a carriage return to the end of the data in the variable "usersname" but I do not know where to add the /n

oops i figured it out
fwrite($handle,$_POST["usersname"]."\n");

Last edited by Toddie; 21Feb2010 at 09:10.. Reason: SOLVED
Light Poster
1Mar2010,15:10   #2
rekha_sri's Avatar
Hi,

I tried the below line in my program. It is working correctly.

fwrite($file,$_POST["my_name"]."\n");
Skilled contributor
1Mar2010,18:34   #3
techgeek.in's Avatar
Quote:
Originally Posted by rekha_sri View Post
Hi,

I tried the below line in my program. It is working correctly.

fwrite($file,$_POST["my_name"]."\n");
Toddie has already figured it out...
Contributor
1Mar2010,22:37   #4
Toddie's Avatar
yeah, you can totally close this thread.

php noob that I am... i figured it out slightly after posting it since i tried a bunch of different combinations while i was waiting for an answer... and I got it to work.

but GUESS WHAT... i have a new issue with another script.
new thread appropriate.