On Jan 2, 2008 1:34 PM, tedd <tedd@xxxxxxxxxxxx> 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. <? // Your existing code here.... $submit = trim(str_replace(' ','',$submit); ?> -- Daniel P. Brown [Phone Numbers Go Here!] [They're Hidden From View!] If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php