Re: First stupid post of the year.
| From: | Jack Mays | Date: | Wed, 02 Jan 2008 19:25:51 +0000 |
| Subject: | Re: First stupid post of the year. | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-266502@lists.php.net to get a copy of this message | ||
Daniel Brown wrote:
On Jan 2, 2008 2:05 PM, tedd <tedd@sperling.com> wrote: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(' ','',$submit); $submit = trim($submit);At 1:57 PM -0500 1/2/08, Daniel Brown wrote:On Jan 2, 2008 1:34 PM, tedd <tedd@sperling.com> wrote:from this: A to this A<? // Your existing code here.... $submit = trim(str_replace(' ','',$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 seeit works (you can view full source there, too):http://pilotpig.net/code-library/tedds-button.php