As John H told me (which is true) I should  run my words through htmlentities.  I have 
a textarea in a form for individuals to type in a list of words.  From there I place 
these words in an array and then perform calculations and echo the words back out with 
the resulting calculations.  But if one enters:    w'   my word ends up    w\'     I 
have tried using htmlentities in my array and other places (to take the slash out) but 
to no avail.  Here is what I tried when putting my words in my array:

$zchrpos = 0;
$tok = strtok($zwords, " \r");
while ($tok !== FALSE) {
        $toks[] = htmlentities(trim($tok));
        $tok = strtok(" \r");
        $zchrpos++;
}
Any help would be appreciated,
Doug

Sorry about the return receipt turned on in previous emails!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to