Re: First stupid post of the year.

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

 



tedd wrote:
Hi gang:

I have a

$submit = $_POST['submit'];

The string contains:

       A       

(it's there to make a submit button wider)

How can I strip out the " " from the $submit string leaving "A"?

I've tried

   trim($submit);

but, that don't work.

Neither does:

   $submit = str_replace(' ','',$submit);

or this:

   $submit = str_replace(' ';','',$submit);

I should know what to do, but in this case I don't.

Help is always appreciated.


Just so we have all the info, why are you wanting to do this? Why not just have the button text be what you want it instead of trying to do manipulation on it's value?

--
Jack Mays

--
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