Re: First stupid post of the year.

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

 



On Jan 2, 2008 1:34 PM, tedd <tedd@xxxxxxxxxxxx> wrote:

> Hi gang:
>
> I have a
>
> $submit = $_POST['submit'];
>
> The string contains:
>
> &nbsp; &nbsp; &nbsp; &nbsp;A&nbsp; &nbsp; &nbsp; &nbsp;
>
> (it's there to make a submit button wider)
>
> How can I strip out the "&nbsp;" from the $submit string leaving "A"?
>
> I've tried
>
>    trim($submit);
>
> but, that don't work.
>
> Neither does:
>
>    $submit = str_replace('&nbsp;','',$submit);
>
> or this:
>
>    $submit = str_replace(' ';','',$submit);
>
> I should know what to do, but in this case I don't.
>
> Help is always appreciated.


why dont you just style the button w/ css?

style="width:200px"

-nathan

[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