columbo
03-26-2012, 11:10 PM
Just learning php and I was trying to echo two lines if text, one being on one line and the next being on the line below it but I can't get it to work.
What I am using is this:
echo"The file " . basename($_FILES['userfile']['name']) . " has been uploaded.\n";
Then I tried this:
echo"The file " . basename($_FILES['userfile']['name']) . " has been uploaded.\r";
But that doesn't place the second echo on a new line either. What I get is this:
The file test.pdf has been uploaded. The file myimage.jpg has been uploaded.
Can anyone steer me to the correct way to do this?
Thanks
What I am using is this:
echo"The file " . basename($_FILES['userfile']['name']) . " has been uploaded.\n";
Then I tried this:
echo"The file " . basename($_FILES['userfile']['name']) . " has been uploaded.\r";
But that doesn't place the second echo on a new line either. What I get is this:
The file test.pdf has been uploaded. The file myimage.jpg has been uploaded.
Can anyone steer me to the correct way to do this?
Thanks