hi!
This is the whole script I'm currently using :
<?
include("header.inc")
?>
<?
for ($x = 0; $x < strlen($userString); $x++)
{
$thischar = substr($userString, $x, 1);
if ($thischar == " ")
{print (" ");}
else
if ($thischar == "\n")
{print ("\n");}
else
if ($thischar == "a")
{print ("A");}
else
print ("(ERROR)");
}
print ("</textarea>");
print ("<small>MBH</small>");
include("footer.inc")
?>
I have read all articles about this and I've tried everything but it still doesn't work!! can some one help plz!
I want the script to keep the newline as it is but it keeps printing (ERROR) (ERROR) twice!!