It works with no problems. The reason you couldn't get it to work, is because nl2br uses <br />, and not <br/>. Insert the extra space, and everything works perfectly.
How do I get the value from a cookie set with setcookie?
I know the cookie exists, but when using echo $_COOKIE['user@systematicus'] nothing comes out.
What do I do wrong?
How can you read the contents of a text file into a script???
I tried to read it using fread, but got an error message saying that i didn't use a valid File-Handle resource on the fread line.
I get a parse error on line 12 when i run this script, but I cant find anything wrong with it. Can someone help me???
<?php
$name = str_replace ("\t" , " " , $_GET['name']);
$mail = str_replace ("\t" , " " , $_GET['mail']);
$country= str_replace...
I use $fopen($file, a) to append something to a file, but how do i add something after a spesific tag, or at a specific linenumber??
Also, is it possible to make newlines in a txt file using php???
Gets a parse error in this line. Don't know what's wrong with it, and it's driving me mad.
fwrite ($fp, $name . "\t" . $mail . "\t" .
Can someone help me, as I'm fairly new in php??
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.