[PHP] Re: Plus sign changing to space in html form

2002-10-31 Thread Phoebe Bright
Here is a fudge that uses Javascript to convert the + into {PLUS} then PHP converts it back again. The only problem is Javascript is only converting the first +, so a+b+c becomes a+b c. $testVal=str_replace("{PLUS}","+",$_POST['test']); echo $testVal; php?>
function SaveHiddenChars() {

[PHP] Re: Plus sign changing to space in html form

2002-10-31 Thread Phoebe Bright
I am battling with the same problem on both IE and Netscape on Mac OS 10.2. Is this a Mac thing? I ammended your code in the hope that something was being passed that only looked like a space.. echo $_POST['test'].''; for($n=1;$n<=strlen($_POST['test']);$n++) { echo var_dump(hexdec(substr($