There is:
fwrite($file,trim($_POST['banadd'])."\r\n");
I need to attach to $_POST['banadd']
also $_POST['nick']
- how to do it?
There is:
fwrite($file,trim($_POST['banadd'])."\r\n");
I need to attach to $_POST['banadd']
also $_POST['nick']
- how to do it?
It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:
fwrite($file,trim($_POST['banadd']) . trim($_POST['nick']) ."\r\n");
In php, the dot is the concatenation (pasting) of a string.
fwrite ($ file, trim ($ _ POST ['banadd']). ''. trim ($ _ POST ['nick']). "rn"); ^^ do it like this if you need a space
Source: https://ru.stackoverflow.com/questions/19628/