text box
Posted: Thu Sep 18, 2003 6:33 pm
Here's the issue, it'll take a long time to explain yet I beleive it's gunna have a simple answer. I have an HTML text box that when they hit "submit" it uses a php script i made and saves it as the file they specified onto my site.
Note: Please ignore the periods.
---------------------------------------------------------------------------------
.................. ____________
File Name: |____________|
Text:
____________________________________
|.......................................................................|
|.......................................................................|
|.......................................................................|
|.......................................................................|
|.......................................................................|
|___________________________________|
----------------------------------------------------------------------------
The script works fine and makes the $filename.txt on the server with the exact text. Say I put:
--------------------------
testing
--------------------------
for the filename, then i put:
----------------------------------
testing...
testing....
testing.....
----------------------------------
Well it does exatly that in the text file which makes sense, but if say i
<?php include("hello.txt"); ?>
into another php file so that it will show the text in that text file on the page, since it oesn't have "<BR>" tages in it, it just shows up like this on the page:
-----------------------------------
testing... testing.... testing.....
------------------------------------
can someone please tell me how to avoid this so that when i include the text file into my php file that it doesn't do that, but instead is viewed with the returns. I know "why" this happens so u dont have to tell me, but please tell me a way around it.
Thank you,
FinalAeon
Note: Please ignore the periods.
---------------------------------------------------------------------------------
.................. ____________
File Name: |____________|
Text:
____________________________________
|.......................................................................|
|.......................................................................|
|.......................................................................|
|.......................................................................|
|.......................................................................|
|___________________________________|
----------------------------------------------------------------------------
The script works fine and makes the $filename.txt on the server with the exact text. Say I put:
--------------------------
testing
--------------------------
for the filename, then i put:
----------------------------------
testing...
testing....
testing.....
----------------------------------
Well it does exatly that in the text file which makes sense, but if say i
<?php include("hello.txt"); ?>
into another php file so that it will show the text in that text file on the page, since it oesn't have "<BR>" tages in it, it just shows up like this on the page:
-----------------------------------
testing... testing.... testing.....
------------------------------------
can someone please tell me how to avoid this so that when i include the text file into my php file that it doesn't do that, but instead is viewed with the returns. I know "why" this happens so u dont have to tell me, but please tell me a way around it.
Thank you,
FinalAeon