Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   syntax question (http://www.go4expert.com/forums/syntax-question-t21063/)

Toddie 21Feb2010 09:01

syntax question
 
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");

rekha_sri 1Mar2010 15:10

Re: syntax question
 
Hi,

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

fwrite($file,$_POST["my_name"]."\n");

techgeek.in 1Mar2010 18:34

Re: syntax question
 
Quote:

Originally Posted by rekha_sri (Post 64961)
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 1Mar2010 22:37

Re: syntax question
 
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.


All times are GMT +5.5. The time now is 22:12.