There is:


I need to attach to $_POST['banadd'] also $_POST['nick'] - how to do it?

Closed due to the fact that off-topic participants ReinRaus , alexis031182 , null , Pavel Mayorov , ixSci 18 May '15 at 9:17 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - ReinRaus, alexis031182, null, ixSci
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 2
    This is sad ... - Alex Kapustin
  • Go to some resource dedicated to PHP and read about the lines: tyts and tydyts - Afipsky

2 answers 2

 fwrite($file,trim($_POST['banadd']) . trim($_POST['nick']) ."\r\n"); 

In php, the dot is the concatenation (pasting) of a string.

  • the strings will merge, and you need another space fwrite ($ file, trim ($ _ POST ['banadd']). ''. trim ($ _ POST ['nick']). "\ r \ n"); - Enpire

fwrite ($ file, trim ($ _ POST ['banadd']). ''. trim ($ _ POST ['nick']). "rn"); ^^ do it like this if you need a space