syntax question

Toddie's Avatar, Join Date: Jan 2010
Contributor
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
rekha_sri's Avatar, Join Date: Feb 2010
Light Poster
Hi,

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

fwrite($file,$_POST["my_name"]."\n");
techgeek.in's Avatar, Join Date: Dec 2009
Skilled contributor
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...
Toddie's Avatar, Join Date: Jan 2010
Contributor
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.