At 2:58 PM -0600 1/2/08, Richard Lynch wrote:
Works for me:

[EMAIL PROTECTED] ~/cd $ php -a
Interactive mode enabled

<?php
$a = '&nbsp; &nbsp; &nbsp; &nbsp;A&nbsp; &nbsp; &nbsp; &nbsp;';
$b = str_replace('&nbsp;', '', $a);
echo "b: $b\n\n";
$c = trim($b);
echo "c: $c\n\n";
?>
b:    A

c: A

That would work for that, but not for this:

Go from this:

<input type="submit" value="&nbsp; &nbsp; &nbsp;A&nbsp; &nbsp; &nbsp; &nbsp">

via this:

$submit = $_POST['submit']

to:

A

It doesn't appear as simple as what people think it is.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

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

Reply via email to