Daniel Brown wrote:
On Jan 2, 2008 2:05 PM, tedd <[EMAIL PROTECTED]> wrote:
At 1:57 PM -0500 1/2/08, Daniel Brown wrote:
On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote:
from this:

&nbsp; &nbsp; &nbsp; &nbsp;A&nbsp; &nbsp; &nbsp; &nbsp;

to this A

<?
// Your existing code here....
$submit = trim(str_replace('&nbsp;','',$submit);

Read the docs for trim, you can't use it inline with other functions, it will not trim the input. you have to seperate it out, e.g.:

 $submit = str_replace('&nbsp;','',$submit);
 $submit = trim($submit);


?>
Even with adding an additional ")", that didn't work either.  :-)


    That was a typo on my part, but check it out here and you'll see
it works (you can view full source there, too):

    http://pilotpig.net/code-library/tedds-button.php



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

Reply via email to