Re: First stupid post of the year.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 2:18 PM -0500 1/2/08, Daniel Brown wrote:
On Jan 2, 2008 2:05 PM, tedd <tedd@xxxxxxxxxxxx> wrote:
 At 1:57 PM -0500 1/2/08, Daniel Brown wrote:
 >On Jan 2, 2008 1:34 PM, tedd <tedd@xxxxxxxxxxxx> 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);
 >?>

 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


If you look , you will see that your:

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

does not strip out the &nbsp; from the string. B remains with spaces on either side -- at least on my browser.

However, the css style A button works great.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux