Re: First stupid post of the year.

From: Date: Wed, 02 Jan 2008 18:26:54 +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-266501@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: >> 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: >> >> &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 > > Since you don't use &nbsp; any more <input type="submit" name="submit" value="A" style="width:160px;align:center;text-align:center;" /> you don't need $submit = trim(str_replace('&nbsp;','',$submit)); right? Also (fine tuning :)), I think you don't need whole < ... style="width:160px;align:center;text-align:center;" /> Just < ... style="width:160px;" /> because it's form button and it's by default already centered. -afan

« previous php.general (#266501) next »