[Pmwiki-users] Another quirk I just found
Patrick R. Michaud
pmichaud
Thu Aug 19 09:15:24 CDT 2004
On Tue, Aug 17, 2004 at 07:14:14AM -0700, Chad Lupkes wrote:
> I have the following command in a dynamic file:
> echo ("<p class=\"narrow\" align=\"center\">Are we missing something
> important? Do you know something about this county that you wish to
> share?<br><a
> href=\"http://www.democracyforwashington.com/pmwiki-1.0.5/pmwiki.php?p
> agename=Main.".$countyname."County\">Add it to the ".$countyname."
> County Wiki page!</a></p>");
>
> This works great, except when the county name has a space in it, like
> "Grays Harbor". I think the space is what makes it fail. What can I
> do to take that space out?
Change the first $countyname in the code above to be either:
str_replace(' ','',$countyname)
or
preg_replace('/\\s/','',$countyname)
Pm
More information about the pmwiki-users
mailing list