At 3:20 PM -0500 1/2/08, Robert Cummings wrote:
<?php

$foo = '&nbsp; &nbsp; &nbsp; &nbsp;A&nbsp; &nbsp; &nbsp; &nbsp;';
$foo = str_replace( '&nbsp;', ' ', $foo );
$foo = trim( ereg_replace( '[ ]+', ' ', $foo ) );

echo '['.$foo.']'."\n";

?>

Nope, still didn't work for going from this:

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

to this:

A

via

$submit = $_POST['submit'];

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